What is the node.js equivalent of window["myvar"] = value?
window["myvar"] = value
To set a global variable, use global instead of window.
global
window
global["myvar"] = value
1.4m articles
1.4m replys
5 comments
57.0k users