🔰Node.js

JSconceptsenvironment ⟩ Node

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

Was this helpful?