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

    Output
    Michael
      (0/300)