Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING BASH RUST

Node.js Tutorial

Node HOME Node Intro Node Get Started Node JS Requirements Node.js vs Browser Node Cmd Line Node V8 Engine Node Architecture Node Event Loop

Asynchronous

Node Async Node Promises Node Async/Await Node Errors Handling

Module Basics

Node Modules Node ES Modules Node NPM Node package.json Node NPM Scripts Node Manage Dep Node Publish Packages

Core Modules

HTTP Module HTTPS Module File System (fs) Path Module OS Module URL Module Events Module Stream Module Buffer Module Crypto Module Timers Module DNS Module Assert Module Util Module Readline Module

JS & TS Features

Node ES6+ Node Process Node TypeScript Node Adv. TypeScript Node Lint & Formatting

Building Applications

Node Frameworks Express.js Middleware Concept REST API Design API Authentication Node.js with Frontend

Database Integration

MySQL Get Started MySQL Create Database MySQL Create Table MySQL Insert Into MySQL Select From MySQL Where MySQL Order By MySQL Delete MySQL Drop Table MySQL Update MySQL Limit MySQL Join
MongoDB Get Started MongoDB Create DB MongoDB Collection MongoDB Insert MongoDB Find MongoDB Query MongoDB Sort MongoDB Delete MongoDB Drop Collection MongoDB Update MongoDB Limit MongoDB Join

Advanced Communication

GraphQL Socket.IO WebSockets

Testing & Debugging

Node Adv. Debugging Node Testing Apps Node Test Frameworks Node Test Runner

Node.js Deployment

Node Env Variables Node Dev vs Prod Node CI/CD Node Security Node Deployment

Perfomance & Scaling

Node Logging Node Monitoring Node Performance Child Process Module Cluster Module Worker Threads

Node.js Advanced

Microservices Node WebAssembly HTTP2 Module Perf_hooks Module VM Module TLS/SSL Module Net Module Zlib Module Real-World Examples

Hardware & IoT

RasPi Get Started RasPi GPIO Introduction RasPi Blinking LED RasPi LED & Pushbutton RasPi Flowing LEDs RasPi WebSocket RasPi RGB LED WebSocket RasPi Components

Node.js Reference

Built-in Modules EventEmitter (events) Worker (cluster) Cipher (crypto) Decipher (crypto) DiffieHellman (crypto) ECDH (crypto) Hash (crypto) Hmac (crypto) Sign (crypto) Verify (crypto) Socket (dgram, net, tls) ReadStream (fs, stream) WriteStream (fs, stream) Server (http, https, net, tls) Agent (http, https) Request (http) Response (http) Message (http) Interface (readline)

Resources & Tools

Node.js Compiler Node.js Server Node.js Quiz Node.js Exercises Node.js Syllabus Node.js Study Plan Node.js Certificate

Node.js Exercises


Test your Node.js skills with exercises from all categories:

Exercises

Tip: Sign in to track your progress - it's free.

0/94 done

Introduction3 exercises

Done

Get Started3 exercises

Done

JS Requirements3 exercises

Done

vs Browser3 exercises

Done

Command Line3 exercises

Done

V8 Engine3 exercises

Done

Architecture2 exercises

Done

Event Loop3 exercises

Done

Async5 exercises

Done

Promise4 exercises

Done

Async/Await4 exercises

Done

Error Handling3 exercises

Done

Modules3 exercises

Done

ES Modules3 exercises

Done

NPM4 exercises

Done

package.json3 exercises

Done

Scripts3 exercises

Done

Dependencies3 exercises

Done

Publish Package3 exercises

Done

HTTP3 exercises

Done

HTTPS3 exercises

Done

File System3 exercises

Done

Path3 exercises

Done

OS3 exercises

Done

URL3 exercises

Done

Events3 exercises

Done

Streams3 exercises

Done

Buffer3 exercises

Done

Crypto3 exercises

Done

Timers3 exercises

Done

DNS3 exercises

Done

Assert3 exercises

Done

Util3 exercises

Done

Readline3 exercises

Done

ES63 exercises

Done

Process Management3 exercises

Done

TypeScript2 exercises

Done

Lint & Formatting3 exercises

Done

Frameworks2 exercises

Done

Express.js3 exercises

Done

Middleware3 exercises

Done

REST API3 exercises

Done

API Authentication3 exercises

Done

Frontend3 exercises

Done

MySQL3 exercises

Done

MySQL Create DB3 exercises

Done

MySQL Create Table3 exercises

Done

MySQL Insert3 exercises

Done

MySQL Select4 exercises

Done

MySQL Where3 exercises

Done

MySQL Order By3 exercises

Done

MySQL Delete3 exercises

Done

MySQL Drop Table3 exercises

Done

MySQL Update3 exercises

Done

MySQL Limit3 exercises

Done

MySQL Join3 exercises

Done

MongoDB2 exercises

Done

MongoDB Create DB3 exercises

Done

MongoDB Create Collection2 exercises

Done

MongoDB Insert3 exercises

Done

MongoDB Find3 exercises

Done

MongoDB Query3 exercises

Done

MongoDB Sort3 exercises

Done

MongoDB Delete3 exercises

Done

MongoDB Drop Collection3 exercises

Done

MongoDB Update3 exercises

Done

MongoDB Limit3 exercises

Done

MongoDB Join3 exercises

Done

GraphQL3 exercises

Done

Socket.IO3 exercises

Done

WebSockets3 exercises

Done

Advanced Debugging3 exercises

Done

Testing3 exercises

Done

Testing Frameworks2 exercises

Done

Test Runner3 exercises

Done

Environment Variables3 exercises

Done

Dev vs Prod3 exercises

Done

CI/CD3 exercises

Done

Security3 exercises

Done

Deployment3 exercises

Done

Logging3 exercises

Done

Monitoring & Observability3 exercises

Done

Performance3 exercises

Done

Child Process3 exercises

Done

Cluster3 exercises

Done

Worker Threads3 exercises

Done

Microservices3 exercises

Done

WebAssembly3 exercises

Done

HTTP/23 exercises

Done

Performance Hooks3 exercises

Done

VM3 exercises

Done

TLS/SSL3 exercises

Done

Network3 exercises

Done

Compression3 exercises

Done

Log in to track your progress

If you haven't already, sign up to become a W3Schooler, and get points for every exercise you complete.

As a logged-in W3Schools user you will have access to many features like having your own web page, track your learning progress, receive personal guided paths, and more.


The Exercise

The exercises are a mix of "multiple choice" and "fill in the blanks" questions. There are between 3 and 9 questions in each category. The answer can be found in the corresponding tutorial chapter. If you're stuck, or answer wrong, you can try again or hit the "Show Answer" button to see the correct answer.


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.