To organize code, TypeScript use module. Internal Module Internal modules came in earlier version of Typescript. This was used to logically group classes, interfaces, functions…
A namespace is a way to logically group related code. This is inbuilt into TypeScript unlike in JavaScript where variables declarations go into a global…
Declare classes Syntax A class Declaration can include the following: Properties − A Property is any variable declared in a class. Properties represent data pertaining…
Like Array, but Tuple can store a collection of values of varied types: Syntax Example: Accessing values in Tuples Syntax Example: Result: Destructuring a Tuple…
Features of an Array An array declaration allocates sequential memory blocks. Arrays are static. This means that an array once initialized cannot be resized. Each…
Example about String: The String object Syntax String Properties constructor : Returns a reference to the String function that created the object. Example: Result: length…
The Number class Syntax Number Properties: S.No. Property & Description 1. MAX_VALUE The largest possible value a number in TypeScript can have 1.7976931348623157E+308. 2. MIN_VALUE…