← Code LabJavaScript0/50 solved · 0%
Data structures · easy

7. Arrays

push, length, index access.

Write `firstAndLast(arr)` returning an array `[first, last]`.
Required in your answer: arr.length