I have a question, is it possible to define a variable in nodejs and then use it in the ejs page? So for example var newOne = "Yes" in nodejs. And then i want to use this variable in the ejs page to check if that variable is equal to yes, in its script tag. I tried this but it always ends up as undefined variable.
How does one do this?