Answer the question
In order to leave comments, you need to log in
How to access a variable through a global object in Node?
In the browser, we can write like this:
var a = 5;
console.log(window.a); //5
And in Node.JS?
And in Node.JS on a C9.io server?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question