Tag view

#nodejs

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with nodejs

3 cards

JavaScript Medium Theory

Modules in JavaScript: import/export, default export, named export, and CommonJS vs ES modules

Modern JavaScript uses modules to organize code, with ES modules in the language standard and CommonJS still common in older Node.js code.

  • Named and default exports behave differently
  • ES modules use `import` and `export`
  • CommonJS uses `require` and `module.exports`

Modules in JavaScript: import/export, default export, named export, and CommonJS vs ES modules

JavaScript Easy Theory

Node.js basics: what Node.js is, common use cases, module.exports, require, npm basics, and package.json basics

Node.js lets JavaScript run outside the browser, especially for servers, tooling, CLIs, and build pipelines.

  • Node.js is a runtime, not the language
  • CommonJS uses `require` and `module.exports`
  • npm and package.json manage dependencies and scripts

Node.js basics: what Node.js is, common use cases, module.exports, require, npm basics, and package.json basics

JavaScript Medium Theory

Single-threaded nature, JavaScript execution model, and browser vs Node.js environment

JavaScript runs user code on a single main thread, but hosts like browsers and Node.js provide different APIs around that execution model.

  • One call stack runs JS code
  • Hosts provide timers, I/O, and APIs
  • Browser and Node.js expose different globals and capabilities

Single-threaded nature, JavaScript execution model, and browser vs Node.js environment