Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `parseCoords(arr)` returning `{ x, y }` from the first two elements, defaulting missing values to `0`.
+ 1 hidden test run on Submit.
Destructuring with defaults fills x and y, supplying 0 where the array is short.
Run your code to see results.