Flashcards
General Questions
Cards in this deck (4)
- 1What's the difference between a tilde (~) and a caret (^) in a npm package.json file?Major, minor and patch represent the different releases of a package.
npm uses the tilde (~) and caret (^) to designate which patch and minor versions to use respectively.
So if you see ~1.0.2 it means to install version 1.0.2 or the latest patch version such as 1.0.4. If you see ^1.0.2 it means to install version 1.0.2 or the latest minor or patch version such as 1.1.0. - 2Explain how the Node event loop works?
- 3What is the difference between node and npm??
- 4What is the difference between require() and import?require is dynamic
import is static
Information
- Description
- NodeJS Flashcards on General Questions, created by Ben Parish on 05/04/2019.
- Created by
- Ben Parish
- Views
- 60
- Rating