April 2017
Beginner to intermediate
378 pages
7h 57m
English
When we declare variables, we can optionally declare the types of variables. For instance:
name: string = 'Arvind'; age: number = 99; isAlive: boolean = true; hobbies: string[]; anyType: any; noType = 50; noType = 'Random String';
This increases the predictability of what we are trying to do.
Read now
Unlock full access