Use the caret character to use the latest minor.. (#34620)
Hints and Solution added to index.md to guides' section
This commit is contained in:
@ -3,8 +3,16 @@ title: Use the Caret-Character to Use the Latest Minor Version of a Dependency
|
||||
---
|
||||
## Use the Caret-Character to Use the Latest Minor Version of a Dependency
|
||||
|
||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/managing-packages-with-npm/use-the-caret-character-to-use-the-latest-minor-version-of-a-dependency/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
||||
## Hint 1
|
||||
* the package `moment` should be in your package.json, specifically in the
|
||||
dependencies property.
|
||||
|
||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
||||
## Hint 2
|
||||
* `moment` version should have a caret character within it.
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
## Solution:
|
||||
```js
|
||||
"dependencies": {
|
||||
"moment": "^2.10.2"
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user