Basic Algorithm Scripting - Where do I Belong

Just an fyi…the “JS Array Sort” link on this challenges “get a hint” page is not working…

function getIndexToIns(arr, num) {

console.log(getIndexToIns([40, 60], 50));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Challenge: Basic Algorithm Scripting - Where do I Belong

Link to the challenge: