Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the purpose of package-lock.json?

  1. A To list the project's scripts
  2. B To record the exact resolved version of every dependency for reproducible installs
  3. C To store environment variables
  4. D To configure the test runner
Answer

To record the exact resolved version of every dependency for reproducible installs

It pins the entire dependency tree so every environment installs identical versions. It should be committed for applications.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as