All quizzes
Free quiz · 35 questions in the bank

npm quiz

Test your npm knowledge with a free interactive quiz — 35 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What does `npm init` do?

In this round
  1. What does `npm init` do?
  2. What does `npx` do?
  3. What is the role of `package.json` in a Node.js project?
  4. What is the purpose of the `scripts` field in package.json?
  5. What does the tilde range `~1.4.2` allow?
  6. What does `npm install` (with no arguments) do?
  7. What does `npm uninstall <pkg>` do?
  8. In semver `^1.4.2`, which updates does the caret allow?
  9. What is `node_modules`?
  10. What is the difference between `dependencies` and `devDependencies`?
  11. Which command adds `lodash` to `dependencies` and installs it?
  12. What does `npm run build` do?
Gaps to close?
Read the curated npm notes — core concepts, patterns, interview prep.
npm notes

More quizzes

.NETAccessibilityAgile MethodologyAlgorithmsAndroidAndroid SDK