Array Helpers
00:00

Description

Implement `getFirst(arr)` that returns the first element of an array.

Example Test Case

Example 1

getFirst
Input
[10,20,30]
Expected Output
10
Loading...
Test Results
Run your code to see the results