🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tags, Releases and Versioning: all 15 questions

Quiz: Tags, Releases and Versioning · Question 8 of 15

What does ^4.18.2 in package.json allow?

What does ^4.18.2 in package.json allow?

  1. A.Exactly 4.18.2 only
  2. B.Versions from 4.18.2 up to, but not including, 5.0.0
  3. C.Any version, including 5.x
  4. D.Only patch updates like 4.18.3
Answer & explanation

Correct answer: Versions from 4.18.2 up to, but not including, 5.0.0

The caret allows minor and patch updates within the same major version.

Can you get the rest right without peeking?

Take the timed Quiz: Tags, Releases and Versioning quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →