Saturday 23 September 2017

Using a variable from the nodejs file in my other js file

Sorry for the unclear title.I have a nodejs file that runs a server using express and it contains a variable.How do I use that variable in another javascript file (the one that actually gets ran clientside through html)For example:Say my nodejs file has a variable called "test" and the value is 5 (var test = 5;) how do I then use that test variable client side.Sorry for my bad english and lack of nodejs skills.

Submitted September 23, 2017 at 10:05PM by Mavast

No comments:

Post a Comment