Skip to content
Quiz · Object types · lesson 3 of 7

Quiz — a missing property

What does tsc report for this file?

TypeScript
type Point = { x: number; y: number };
const p: Point = { x: 1 };
console.log(p.y);