TypeScript – Functions Defining a Function Syntax: Example 1: Example 2: anonymous function Calling a Function A function must be called so as to execute…
TypeScript – Decision Making Decision-making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, along with…
TypeScript – Operators Arithmetic Operators Operator Description Example + (Addition) returns the sum of the operands var z = x + y – (Subtraction) returns…
TypeScript – Variables Variable rules: Variable names can contain alphabets and numeric digits. They cannot contain spaces and special characters, except the underscore (_) and…
Install nodejs or nvm For Windows: Node Version Manager (nvm) for Windows IDE Visual Studio Code: https://code.visualstudio.com/docs?dv=win TypeScript Playground https://www.typescriptlang.org/play?# Install typescript Result: Verify: Compile…