[CLOSED]Where do I Belong - What's wrong?

Tell us what’s happening:
Hey, please help me!

Your code so far

function getIndexToIns(arr, num) {
let newArr=arr.sort((a, b) => a - b);
for(var i=0;i<newArr.length;i++){
var indx=newArr.indexOf([i]);
return indx;

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/68.0.3440.106 Safari/537.36.

Link to the challenge:

I DON’T need help anymore.