Friday, 14 April 2017

Update JS Variable in another file

I am working on a bot and my goal is to essentially create a counter for my bot every time it is called. My first thought is to have a variable stored in another file and when the main js file is called it calls a method to update the variable in the other file. Do I have to use require() or is there another way for me to do this?



via Aaron Rotem

No comments:

Post a Comment