← Code LabTypeScript0/50 solved · 0%
Foundations · easy

3. Tuples

Fixed-length arrays with specific types.

Define a `Point` as a tuple of two numbers (x, y). Write `distance(p)` that returns the distance from origin.
Required in your answer: [number, number]