1/4 Test Cases Passed
You need to earn 2 or 3 stars in order to submit.
1/4 Test Cases Passed
You need atleast 2 stars to grade your answer.
Test Cases (0/4)
-
secondToLast( [42,true,4,"Kate",7] ) to return Kate
-
secondToLast([42,true,4,"Kate",7, 9] ) to return 7
-
secondToLast([42,true,4,"Kate",7, 9, "dojo", "awesome"]) to return dojo
-
secondToLast([1]) to return null