Node.js · Junior · Question 24 of 75

What does the version range ^1.4.2 allow?

Explanation

The caret allows minor and patch updates. ~1.4.2 allows only patch updates (1.4.x). For 0.x versions the caret is stricter: ^0.4.2 means >=0.4.2 <0.5.0.

Further reading

Problem with a question

Node.js · Junior · question 24

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz