Node.js Introduction

JavaScript outside the browser.

✍️ 2 exercises in this lesson

Node.js is a runtime that runs JavaScript on servers and computers, outside the browser. It is built on Chrome's V8 engine.

Why Node.js?

  • Use one language (JavaScript) for frontend and backend.
  • Non-blocking, event-driven I/O: great for APIs, chat apps and real-time services.
  • npm, the world's largest package registry.

Node is used by Netflix, PayPal, LinkedIn and Uber.

Key Takeaways: Node.js Introduction

Mastering Node.js Introduction helps you write clean and reliable Node.js code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.

Node.js Introduction Code Example

Node.js
// hello.js  →  run with:  node hello.js
console.log("Hello from Node.js!");
console.log("Node version:", process.version);
Output
Hello from Node.js!
Node version: v20.17.0
Run this example on your own computer. The "Get Started" lesson shows how to set it up.

Node.js Introduction Practice Exercises

Check what you learned in “Node.js Introduction”.

/ 2 solved
Fill in the blank

Run a JavaScript file with Node.

 app.js
✓ Correct! Not quite. Try again.
Multiple choice

Which engine does Node.js use?

✓ Correct! Not quite. Try again.
to save your exercise progress.
Finished this lesson?
Mark it complete to track your progress.

Stuck on something?

Ask the community in the CodesInTech forum.

Need a developer?

Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.

Explore Our Services