TypeScript

130 단어·1 분·원문(.md)

What is TypeScript? #

  • It applies (extends) the concept of types to JavaScript.
  • It catches errors before the code runs.

TypeScript is a programming language. It is a Compiled Language. JavaScript is an Interpreted Language.

Differences between Compiled and Interpreted #

Compiled #

  • Requires compilation
  • Requires a compiler
  • Has a compilation phase

Compile time

  • Executes the compiled output
  • Execution time of the compiled output

Interpreted #

  • Does not require compilation
  • Does not require a compiler
  • Does not have a compilation phase
  • Executes the code itself
  • Has a code execution phase

TypeScript vs JavaScript #

  • TypeScript is a JavaScript-based language.
  • JavaScript is a client-side scripting language.
  • TypeScript is an object-oriented compiled language.
  • The object-oriented programming paradigm focuses on data abstraction.

It is based on two main concepts: objects and classes.

Front-End/TS/TypeScript.md