is javascript typescript code example
Example 1: what is typescript
/* TypeScript is a programming language developed
and maintained by Microsoft.
It introduces additional features like strict type binding
(variables are bound to specific data types) to JavaScript.
*/
Example 2: what is typescript
Basically, TypeScript is like an extension or "superset" of JavaScript.
Since JavaScript is a loosely typed language,
TypeScript enforces the strict use of types.
Thus, making it a strictly typed language.