0

I have a variable I am sending to the client side via res.render().

My question is if I have an external JS file that I use for that HTML page, how can I grab the EJS variables that I had send via res.render().

Thanks!

2
  • 1
    Possible duplicate of Accessing EJS variable in Javascript logic Commented Sep 12, 2018 at 11:30
  • How about using EJS to pass through variables, you import external JS into the res.render() file? Commented Sep 12, 2018 at 11:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.