ts
const
user
= {
firstName
: "Angela",
lastName
: "Davis",
role
: "Professor",
}
console
.
log
(
user
.
name
)
Property 'name' does not exist on type '{ firstName: string; lastName: string; role: string; }'.2339Property 'name' does not exist on type '{ firstName: string; lastName: string; role: string; }'.
ts
const
user
= {
firstName
: "Angela",
lastName
: "Davis",
role
: "Professor",
}
console
.
log
(
user
.
name
)
Property 'name' does not exist on type '{ firstName: string; lastName: string; role: string; }'.2339Property 'name' does not exist on type '{ firstName: string; lastName: string; role: string; }'.