Stage 1 · Lesson 9 of 9
Modules and npm
Each file is a : it shares code with other files through export and import. Prefer named exports, so a rename stays consistent everywhere. Your dependencies are listed in package.json and installed into node_modules.
The (package-lock.json, yarn.lock or pnpm-lock.yaml) records the exact versions and belongs in . A range such as ^2.1.0 allows any 2.x at or above 2.1.0. In an project, add native libraries with npx expo install, which picks versions that match your Expo SDK.
Common trapadding a package with that does not support your setup, or a large library for a one-line helper.
A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock
Resources for this stage
Start with· follow one of these
- CoursePaidGrokking JavaScript Fundamentals
Design Gurus · Beginner · $50
Beginner JavaScript with an exercise after most lessons
- GuideFreeJavaScript.info
Ilya Kantor
Free and thorough: Part 1 is the language, skip the browser chapters in Part 2