TypeScript
ELI5 — The Vibe Check
TypeScript is JavaScript with a strict parent watching over it. You have to tell it exactly what type each thing is — a number, a string, an object — and it yells at you BEFORE you ship if you mix them up. Less bugs, more typing (the keyboard kind).
Real Talk
TypeScript is a statically-typed superset of JavaScript developed by Microsoft. It adds optional type annotations, interfaces, enums, and generics that are checked at compile time. TypeScript compiles down to plain JavaScript and catches entire classes of bugs before runtime.
Show Me The Code
interface User {
name: string;
age: number;
}
function greet(user: User): string {
return `Hello, ${user.name}!`;
}
When You'll Hear This
"Switch the project to TypeScript so we catch type errors at compile time." / "The TypeScript compiler is screaming at me about a null check."
Related Terms
Angular
Angular is Google's JavaScript framework — the strict, opinionated one that comes with everything pre-decided.
Interface
An interface is like a job description. It says 'whatever fills this role must be able to do X, Y, and Z' without caring how they do it.
JavaScript
JavaScript is what makes websites actually DO stuff. HTML is the bones, CSS is the skin, and JavaScript is the muscles and brain.
React
React is a JavaScript library from Meta for building UIs out of components.
Vue
Vue is a JavaScript framework for building interactive UIs. It's famous for being easy to pick up — HTML developers feel right at home.