Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript

const user = {
  firstName: "Angela",
  lastName: "Davis",
  role: "Professor"
}

console.log(user.firstName)
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; }'.Try
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript
ADD COMMENT
Topic
Name
4+8 =