Code QuizBeginner

Readonly Property Modifier

Find why assigning to this property is rejected.

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

const p: Point = { x: 1, y: 2 };
p.x = 5;

What is the bug in this code?