Code QuizBeginner

Optional Object Properties

Spot the incorrect syntax for an optional interface property.

Codetypescript
interface User {
  name: string;
  age: number?;
}

const u: User = { name: "Ada" };

What is the bug in this code?