🔰Node.js
JS ⟩ concepts ⟩ environment ⟩ Node
(a JS runtime environment) builds server-side applications with JavaScript.
in Node.js:
top-level scope of a file is module scope ( not global scope❗)
the global object is refered to as "global".
in Node.js:
each JS file is treated as a module.
automatically wraps the code of a JS file in a self IIFE with:
exports, require, module, __filename, __dirname
as parameters to the function.
👉 stackoverflow ⟩ What is the 'global' object in NodeJS
Last updated