Wrong case test? [SOLVED]

Test case:
getIndexToIns([2, 5, 10], 15) should return 3 .`

Tell us what’s happening:
3 index? --> [0][1][2][?]

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36.

Link to the challenge:

Return the lowest index at which a value (second argument) should be inserted into an array (first argument) once it has been sorted.

getIndexToIns([2, 5, 10], 15) should return 3

It means that 15 should be inserted into the input array at index 3:

[2, 5, 10, ]
----------^
1 Like

Thanks @jevons , yes the exercise have any additional tasks to do :open_mouth: , solved :smiley: