An introduction to the Use of Modularity in Node.js for Beginners
In Client side Javascript, when you declare a variable or a function, it is added to the global scope. For example, when you define a function, it is added to the global scope and it is available via the window object.
var name = function() {
//code...
debbie.hashnode.dev2 min read