Angular is primarily built with TypeScript. TypeScript adds things like a type system, interfaces, and class structure on top of JavaScript, which means you can catch mistakes early as your project grows. This is especially helpful for API data, form values, and component inputs/outputs — adding types makes your code much more trustworthy.
typescript
// TypeScript allows us to add types to our variables.
let name: string = "Angular";
let version: number = 16;
let isAwesome: boolean = true;
function greet(person: string): string {
return "Hello, " + person;
}You should see
(TypeScript checks for errors at compile time and then compiles down to JavaScript)