Mobile development

Stage 1 · Lesson 9 of 9

Modules and npm

JavaScript and TypeScript

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

  • CoursePaid
    Grokking JavaScript Fundamentals

    Design Gurus · Beginner · $50

    Beginner JavaScript with an exercise after most lessons

  • GuideFree
    JavaScript.info

    Ilya Kantor

    Free and thorough: Part 1 is the language, skip the browser chapters in Part 2

Practise

  • Dart, TypeScript, Kotlin and Swift tracks with small exercises and free mentor feedback

Keep handy

Also worth your time

Mark this stage as not done?