What is the difference of using var and not using var in repl while dealing with variables?
Answer / Mohammad Naseem
In Node.js REPL, using 'var' declares a variable globally if it's outside a function or locally within the function. If you don't use 'var', then the variable is treated as a global one.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of node.js module.exports and how do you use it?
What are the benefits of using node.js?
What do you mean by event emmitter?
Explain the concept of middleware in node.js?
What do you mean by “streams”?
What are Node.js Http module limitations?
Why Node.js application is scalable?
What do you understand by the term i/o?
Explain node.js architecture?
What are various node.js REST API frameworks?
Explain ecmascript?
What is npm for?