Back to list
Lv.3

TypeScript

TypeScript

A programming language that adds static typing to JavaScript, letting you define data types in your code.

In Simple Terms

TypeScript is a programming language built on JavaScript that adds a system called 'static typing.' You can set rules in advance—like 'only text allowed here'—so type-related mistakes get caught while you're writing the code, before you even run it. Programs written in TypeScript are ultimately compiled into JavaScript, so they can run anywhere JavaScript works—in a browser or on a server. Because the type rules are clearly defined, it's widely used for complex applications and large-scale projects with multiple developers.

Behind the Name

The name blends 'Type' (data type) and 'Script' (as in scripting language). It takes JavaScript and layers on the ability to define 'types'—rules for what kind of data goes where—so the name captures exactly what it does.

Take a Closer Look!

TypeScript is a programming language developed by Microsoft.
It's built on top of JavaScript and adds a feature called 'static typing.'

Its biggest strength is how easy it makes catching type-related errors before you run your code.
With plain JavaScript, you often only discover mistakes—like a number ending up where text was supposed to go—once the app is actually running.
With TypeScript, you set rules in advance, such as 'only text allowed here,' so it flags errors while you're still writing the code.
This helps prevent unexpected bugs from slipping through.

Programs written in TypeScript don't run directly as-is—they're first compiled into JavaScript before execution.
That means they can run anywhere JavaScript works: in a browser, on a server, anywhere.
And any useful JavaScript feature you already know still works just fine in TypeScript.

TypeScript's ability to produce safe, readable code makes it a great fit for complex, large-scale applications.
When collaborating in a team, the clear type rules make it much easier to understand code written by others.