Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript

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; }'.
Property 'name' does not exist on type '{ firstName: string; lastName: string; role: string; }'.
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript
ADD COMMENT
Topic
Name
4+4 =