Jun 13, 2024 / New Techs

What is typescript?

What is typescript? image

Understanding TypeScript

TypeScript is a strongly typed, object-oriented, compiled programming language that builds on JavaScript. It is a superset of the JavaScript language, designed to give you better tooling at any scale.

The lead architect behind TypeScript is Anders Hejlsberg, designer of C# at Microsoft. TypeScript is open source, backed by Microsoft, and considered both a language and a set of tools.

TypeScript calls itself “JavaScript with syntax for types.” In short, it is JavaScript with some additional features.

Components of TypeScript

TypeScript comprises three main components: Language, the TypeScript Compiler, and the TypeScript Language Service.

  1. Language: the syntax, keywords, and type annotations.
  2. The TypeScript Compiler (TSC): converts the instructions written in TypeScript to its JavaScript equivalent.
  3. The TypeScript Language Service: an additional layer of editor-like applications, such as statement completion, signature help, code formatting, and colorization, among other things.

What TypeScript Does

TypeScript is often considered “JavaScript and more.” More precisely, there are four main goals of TypeScript:

Shakur Jr
|
|
Hero Image by ladaz3d on Freepik