- Nodejs allows to run JavaScript outside the browser
- To test, we can create a new
index.jsfile withconsole.log("Hello")and run it using Nodenode index.js(Node must be installed for this)
npmis Node’s Package Manager, it helps us to use other people’s code
- Not all browser js can be run on node.js. Things like
document.querySelectorare not supported
- The global object in node is called
globalwhich is similar to browser’swindow
This nodejs.dev is a documentation site great for learning
Node can be run using the code runner extension
Node can be run from terminal
Keyboard shortcuts to run code runner
Node
repl can be used to run in an interactive shell