July 2017
Intermediate to advanced
384 pages
8h 23m
English
TypeScript exposes the basic types, as well as a couple of extra types. Let's explore the type system with these examples.
let success: boolean = true;
let count: number = 20;
let message: string = "Hello world";
let ages: number[] = [31, 20, 65];let ages: Array<number> = [31, 20, 65];
let x: [string, number];x = ["age", 40]; // okx = [40, "age"] ; // error
Read now
Unlock full access