In One Minute : TypeScript

TypeScript is a typed superset of javascript that transpiles to plain JavaScript. It adds optional types, classes, interfaces, and modules to JavaScript. It was developed by Microsoft and is open source.

TypeScript offers classes, modules, and interf…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Rakesh KR

TypeScript is a typed superset of javascript that transpiles to plain JavaScript. It adds optional types, classes, interfaces, and modules to JavaScript. It was developed by Microsoft and is open source.

  • TypeScript offers classes, modules, and interfaces to help developers build robust components.
  • TypeScript types let developers define interfaces between software components and gain insight into the behaviour of existing JavaScript libraries.
  • TypeScript starts from the syntax and semantics millions of JavaScript developers know today.
  • With TypeScript, developers can use existing JavaScript code, incorporate popular JavaScript libraries, and be called from other JavaScript code.
  • TypeScript transpiles to JavaScript code which runs on any browser, in node.js, or in any other ES3-compatible environment.
  • TypeScript as a language extension adds (amongst others) the following features:
  • Type annotations and compile-time type checking
  • Namespaces
  • Interfaces
  • Enums (to define a set of named constants)
  • Generics (classes, types, and functions that can work over a variety of types)
  • Await (suspends the execution until an asynchronous function return promise is fulfilled)
  • Abbreviated "arrow" syntax for anonymous functions
  • Optional parameters and default parameters

Useful Links


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Rakesh KR


Print Share Comment Cite Upload Translate Updates
APA

Rakesh KR | Sciencx (2022-11-12T10:41:00+00:00) In One Minute : TypeScript. Retrieved from https://www.scien.cx/2022/11/12/in-one-minute-typescript/

MLA
" » In One Minute : TypeScript." Rakesh KR | Sciencx - Saturday November 12, 2022, https://www.scien.cx/2022/11/12/in-one-minute-typescript/
HARVARD
Rakesh KR | Sciencx Saturday November 12, 2022 » In One Minute : TypeScript., viewed ,<https://www.scien.cx/2022/11/12/in-one-minute-typescript/>
VANCOUVER
Rakesh KR | Sciencx - » In One Minute : TypeScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/11/12/in-one-minute-typescript/
CHICAGO
" » In One Minute : TypeScript." Rakesh KR | Sciencx - Accessed . https://www.scien.cx/2022/11/12/in-one-minute-typescript/
IEEE
" » In One Minute : TypeScript." Rakesh KR | Sciencx [Online]. Available: https://www.scien.cx/2022/11/12/in-one-minute-typescript/. [Accessed: ]
rf:citation
» In One Minute : TypeScript | Rakesh KR | Sciencx | https://www.scien.cx/2022/11/12/in-one-minute-typescript/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.