🔥 0
0
Lesson 10 of 10 10 min +135 XP

🧠 Quiz: Node.js Fundamentals

Answer all questions to complete the quiz and earn 135 XP.

1

What is Node.js?

2

What makes Node.js efficient at handling many concurrent connections?

3

What does 'npm init' create?

4

How do you import a local file called 'utils.js' in the same directory?

5

What is the purpose of the 'async' keyword?

6

What does fs.readFileSync do that fs.readFile doesn't?

7

In Express, how do you access the URL parameter in '/users/:id'?

8

What does Express middleware do?

9

Why should you never commit node_modules to git?

10

What is the correct way to return JSON in Express?

11

What does Promise.all() do?

12

What is the event loop's main job?