Chapter quiz · Node Basics

Test what you learned.

8 questions on Node Basics. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Node Basics — Chapter Quiz

Eight questions covering install, scripts, modules, npm.

0/ 9
  1. Question 1
    1

    What is Node.js?

  2. Question 2
    2

    Which file extension is *always* treated as an ES module?

  3. Question 3
    3

    __dirname is available by default in ESM modules.

  4. Question 4
    4

    Which command runs a script in watch mode in Node 22+?

  5. Question 5
    5

    How do you read CLI arguments in Node?

  6. Question 6
    6

    The native tsc init-equivalent for Node packages is npm ___ -y.

  7. Question 7
    7

    What does npx do?

  8. Question 8
    8

    Which prefix unambiguously refers to Node's built-in modules?

    Select all that apply.

Pick an answer — instant feedback as you go.