Codstak
    • Home
    • DSA
    • JavaScript
    • TypeScript
    • Node.js
    • React
    • More↓
      14-Day PrepDiscordNewsletterLeaderboard
    Free foundations path

    Learn TypeScript one clear step at a time.

    Start with the language basics before tackling type puzzles. Each short exercise introduces one idea, explains why it matters, and gives you room to practice it in a TypeScript editor.

    20

    Foundation exercises

    100%

    Free to access

    Beginner

    Starting level

    Start here

    TypeScript foundations

    Complete these in order. Later lessons will build on the vocabulary and patterns introduced here.

    Lesson 1Free

    Dashboard Greeting Composer

    Add basic TypeScript annotations while creating a friendly message from a learner name.

    10 minStart lesson
    Lesson 2Free

    Lesson Progress Meter

    Use typed number parameters to calculate how much of a lesson remains.

    12 minStart lesson
    Lesson 3Free

    Milestone Status Line

    Read values from a typed object and return a simple progress summary.

    15 minStart lesson
    Lesson 4Free

    Focus Route Caption

    Use a string union to keep a small set of learning modes predictable.

    15 minStart lesson
    Lesson 5Free

    Study Tag Tidy-Up

    Define a precise string-literal union for the first study tags.

    15 minStart lesson
    Lesson 6Free

    Checkpoint Tally

    Model one checkpoint with a small object type.

    12 minStart lesson
    Lesson 7Free

    Learner Contact Snapshot

    Represent an optional contact field in a TypeScript interface.

    15 minStart lesson
    Lesson 8Free

    Lesson Clock Lookup

    Use Record to describe a typed lesson-duration lookup.

    15 minStart lesson
    Lesson 9Free

    Feedback Signal

    Model feedback that may not exist yet.

    15 minStart lesson
    Lesson 10Free

    Learning Activity Line

    Define two activity shapes with a discriminated union.

    20 minStart lesson
    Lesson 11Free

    First Saved Resource

    Preserve an unknown resource value with a generic wrapper.

    20 minStart lesson
    Lesson 12Free

    Position Your Resources

    Carry a generic resource type through a position object.

    20 minStart lesson
    Lesson 13Free

    Profile Draft Merge

    Use Partial to model a draft that can update any profile field.

    20 minStart lesson
    Lesson 14Free

    Profile Detail Reader

    Derive valid field names from an interface with keyof.

    20 minStart lesson
    Lesson 15Free

    Save State Message

    Model UI save states as a discriminated union.

    20 minStart lesson
    Lesson 16Free

    Safe Checklist Copy

    Make a checklist shape readonly with a built-in utility type.

    18 minStart lesson
    Lesson 17Free

    Weekly Minutes Total

    Combine a day union with Partial Record for a weekly log.

    20 minStart lesson
    Lesson 18Free

    Outcome Check

    Create a generic success-or-error result type.

    20 minStart lesson
    Lesson 19Free

    Lesson Order Switch

    Use a generic type to describe a labelled lesson response.

    20 minStart lesson
    Lesson 20Free

    Today's Study Snapshot

    Recap object and array types by modelling a study summary.

    25 minStart lesson
    Every TypeScript foundation lesson is free while we build the path.