Code QuizIntermediate

Excess Property Check

Spot why an extra property on an object literal is rejected.

Codetypescript
interface Point {
  x: number;
  y: number;
}

const p: Point = { x: 1, y: 2, z: 3 };

What is the bug in this object literal assignment?