- Engine – parse your code and convert it to runnable commands
The first part is called Engine and the second is Runtime. For example, the Chrome Browser and Node.js use the same Engine – V8, but their Runtimes are different: in Chrome you have the window, DOM objects etc, while node gives you require, Buffers and processes. Chrome and Node.js therefore share the same engine (Google’s V8), but they have different runtime (execution) environments. In a way, the runtime is to the engine what the linker is to the compiler in a traditional compiled language.
The runtime environment provides the built-in libraries that are available to the program at runtime (during execution). So, if you’re going to use the Window object or the DOM API in the browser, those would be included in the browser’s JS runtime environment. A Node.js runtime includes different libraries, say, the Cluster and FileSystem APIs. Both runtimes include the built-in data types and common facilities such as the Console object.
Wikipedia goes on to say: “Node.js has an event-driven architecture capable of asynchronous I/O. These design choices aim to optimize throughput and scalability in Web applications with many input/output operations, as well as for real-time Web applications (e.g., real-time communication programs and browser games).”.
Don’t spend a lot of time learning Node if you are just getting started with Node. Install it. Know what it is, but move on to learning things that you will need to know, such as Express and Angular 2.
YouTube beginner videos on Node.js
Node.js Fundamentals – 13 minutes.
Here is a website with an article for beginners of Node.js: http://www.nodebeginner.org/
At the Console
To get started quickly in writing some code and seeing results, have a look at the post called Node.js Hello World.
If you want to install Node.js, have a look at the blog post Node.js Installation.
Node.js is part of the Linux Foundation. The Linux Foundation hosts many of the most important open source projects in the world, including Linux.
Embedding Chrome V8