What is Node.js?
Options
- A database used for storing web application data
- A JavaScript runtime to run code outside the browser (Correct option)
- A CSS framework used for building page layouts
- A cloud provider that rents out servers by the hour
Answer
A JavaScript runtime that lets you run JavaScript outside the browser, for example to build servers and command-line tools
Why
JavaScript was born inside browsers. Node.js is a program that can run JavaScript code on any computer, so you can write a backend or a script in JavaScript.
Node.js describes itself as a free, open-source, cross-platform JavaScript runtime environment, built to be asynchronous and event-driven.
A runtime is the program that executes your code.
Remember
Node.js = JavaScript outside the browser.