NoNode.js · Lesson 1 of 7
Hello, Node.js!
Node.js is JavaScript without a browser. It has no `window`, no `document`, but it does have the file system, network access, and a massive ecosystem of packages through npm.
◆ Note
Node.js v12+ supports ES modules natively. Add `"type": "module"` to package.json to use `import/export` instead of `require/module.exports`. This guide uses ES modules throughout.
Node.js v12+ supports ES modules natively. Add `"type": "module"` to package.json to use `import/export` instead of `require/module.exports`. This guide uses ES modules throughout.