Tell us what’s happening:
Hello, just to clarify, what number am i supposed to return if I can’t figure which index the number belongs in?
Your code so far
function getIndexToIns(arr, num) {
return num;
}
getIndexToIns([40, 60], 50);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Challenge Information:
Basic Algorithm Scripting - Where do I Belong