Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyTypeScripttype annotationsSingle-choice MCQ2 views

What does the type annotation on the `point` parameter require a caller to pass?

function distance(point: { x: number; y: number }): number { return Math.sqrt(point.x ** 2 + point.y ** 2); }