This tutorial could not be loaded.
Loading tutorial...
Interactive tutorial
Build and run a small Node.js application using ES modules, built-in APIs, and an npm dependency. Configure project scripts, understand reproducible dependency installation, and explain how synchronous code, promises, timers, and asynchronous file operations interact with the event loop.
Step 1 of 10
4 min
Run JavaScript with Node.js
Run a JavaScript file locally and distinguish Node.js, npm, and the browser.
Step 2 of 10
4 min
Initialize an npm Project
Initialize the local npm project and configure its JavaScript files to use ES modules.
Step 3 of 10
6 min
Connect Local and Built-In Modules
Connect a local named export and a built-in Node.js module, then recognize a separate CommonJS example.
Step 4 of 10
5 min
Install and Use an npm Package
Install a third-party package, import its function, and use it to normalize the application's greeting.
Step 5 of 10
4 min
Run and Reproduce the Project
Configure an npm start script and choose workflows for changing or reproducing dependencies.
Step 6 of 10
5 min
Follow the Event Loop
Schedule a timer, observe when its callback runs, and predict the order of synchronous and timer logs.
Step 7 of 10
6 min
Add Promises and async/await
Explore promise scheduling and use await to express an asynchronous sequence.
Step 8 of 10
6 min
Read a File and Handle Failure
Read a local text file with a promise-based API and handle a failed read at the application boundary.
Step 9 of 10
4 min
Recognize Blocking Work
Observe how synchronous work delays a timer and distinguish asynchronous I/O from CPU work wrapped in a promise.
Step 10 of 10
7 min
Build, Explain, and Review
Run the complete application, connect its modules and npm workflow, and explain its asynchronous behavior.
Video Courses
Advanced
Ideal for beginners
recommended
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks