Code QuizBeginner

Object Type Annotations

Spot the missing required property in an object literal.

Codetypescript
let user: { name: string; age: number } = {
  name: "Bob"
};

What is the bug in this code?