Quiz · Object types · lesson 3 of 7
Quiz — a missing property
What does tsc report for this file?
type Point = { x: number; y: number };
const p: Point = { x: 1 };
console.log(p.y);What does tsc report for this file?
type Point = { x: number; y: number };
const p: Point = { x: 1 };
console.log(p.y);