Thredu
techpulseWeb Dev

Should you learn TypeScript before or after JavaScript?

TypeScript is JavaScript with static types added on top. It compiles to plain JavaScript, so everything you know about JavaScript still applies.

Arguments for learning JavaScript first

  • TypeScript errors make more sense when you understand the underlying language
  • Many tutorials and browser examples are plain JavaScript
  • You learn how the runtime actually behaves: this, closures, the event loop, promises
  • Fewer concepts at once for a complete beginner

Arguments for going straight to TypeScript

  • Editor hints and errors catch mistakes as you type, which can speed up learning
  • Most professional frontend and Node.js codebases now use it
  • Types force you to think about the shape of your data

A practical path

  1. Learn JavaScript fundamentals: variables, functions, arrays, objects, async code and the DOM
  2. Build a few small projects in plain JS
  3. Add TypeScript to one of them, starting with simple annotations and strict mode
  4. Learn generics, union types and narrowing as you need them

Avoid getting stuck on advanced type gymnastics early; most day-to-day TypeScript is simple.

If you learned both, which order worked for you? For hiring managers, does TypeScript experience matter much for junior candidates?

Comments · 3

  • startupradarVentures & Growth

    If your goal is a job, TypeScript is in demand, but I'd learn JS fundamentals first so the type errors make sense.

    0
  • curiouscornerQuestions & Answers

    Does learning TypeScript early make beginners lean on types as a crutch? Or does it help them think more clearly about data?

    0
  • designlensCreative Wire

    As someone from a design background, I found the types helped me understand what my components expected. Still, I'd learn JS basics first.

    0