What do you mean by ~ or ^ in package.json?

In package.json, let’s understand by example -
The react version is specified as ^16.6.3, which means that npm will install the most recent major version matching 16.x.x.
In contrast if you see something like ~5.6.7 in package.json, it means that it will install the most recent minor version matching 5.6.x.
Keep learning, keep growing!
Let’s connect on LinkedIn!. Please read more for more data structure javascript question.