November 2018
Beginner
502 pages
10h 22m
English
In the Understanding basic types section, we introduced ourselves to objects, which are types that can have their own properties. Interfaces, type aliases, and classes are ways that we can define an object structure before we start using it.
Following here is the customer object we worked with, where we declared the customer variable with an initial object value:
const customer = { name: "Lamps Ltd", turnover: 2000134, active: true };
let customer: object;customer = { name: "Lamps Ltd", turnover: 2000134, active: true };
Read now
Unlock full access