How to pass a variable from Node.js to JavaScript?
I want to pass a variable from Node.js to the internal JavaScript that is inside "flashcards", I am trying to use EJS to pass the array "cardNames" Server side: app.get("/apps/flashcards", (req, res) => { res.render("flashcards", { cardNames: ["card1", "card2", "card3",…