Node.js for Beginners / Chapter 1 — Getting started (lessons 1–5) / Lesson 1
What Node.js is (V8 and libuv)
Time needed: about 4 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
Node.js is "V8 with the ability to touch the OS added"
Node.js is a JavaScript runtime.
No HTML and no <script> tag: typing node filename.js in a terminal runs JavaScript.
Let us run the shortest possible program first and establish the starting point.
hello.js and its output
// The first program to run in Node.js.
// This single line runs in a terminal, with no browser open.
console.log('Hello, Node.js!');
$ node hello.js
Hello, Node.js!
Printing what the runtime really is
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.