TypeScript
Strong typing : *TypeScript helps catch errors at compile-time , reducing the chances of runtime errors. \\ String\\ let mgs : String = "hello"; console.log( mgs ); output: helloo \\ number \\ let num : number = 1,2,3,4,5; console.log( num ); output: 1,2,3,4 \\ boolean \\\ let bool : boolean = true ; console.log( bool ); output: true \\ null \\\ - null represents the intentional absence of any object value . let value = null ; console.log( typeof value ); output: object \\ undefined \\\ let value ; console.log( type of value) output: undefine Type Assignment: Type Assignment: * When creating a variable, * There are two main ways TypeScript assigns a type: Explicit Implicit In both examples below firstName is of type string : Explicit Type: Explicit : writing out the type: example: let firstName: stri...