Posts
Writings
Notes from my journey as a developer. What I am learning, what I got wrong, and what stuck.
Latest
September 23, 202412 min read
TypeScript Basics
A practical walkthrough of TypeScript from primitives to generics, narrowing and discriminated unions, with runnable examples for each idea.
Read full postTypeScript is a superset of JavaScript, providing type safety and static type checking. It is a statically-typed language.
In statically typed languages, the data type of a variable is known at compile time, while in dynamically typed languages, the data type is assigned during runtime by the interpreter, depending on its value.
Read more