scrimba
Learn TypeScript
Nested object types (5)
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Nested object types (5)
AboutCommentsNotes
Nested object types (5)
Expand for more info
index.ts
run
preview
console
type Person = {
name: string
age: number
isStudent: boolean
}

let person1: Person = {
name: "Joe",
age: 42,
isStudent: true
}

let person2: Person = {
name: "Jill",
age: 66,
isStudent: false
}
Console
/index.html
-5:12