Confusing paragraph

Tell us what’s happening:
I think the paragraph below is confusing in my opinion. The one explained in the hint is much understandable. I think the term “lowest index” made it much more confusing.

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

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 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36

Challenge: Where do I Belong

Link to the challenge:

Is it the word “lowest” or “index” that is confusing?

1 Like

Given that indices are zero-based, “lowest index” has a pretty specific meaning. What part of it do you see as confusing?

1 Like

The said paragraph is tight and very specific and uses terms, which you should understand, in order to comprehend the exact requirement of the task. It can be confusiong, if you are not entirely familiar with what is implied with index, function argument, insert element in an array, sorting array. It might take few reads to make the entire sense of it, but its there and is very straight, you just need to put the pieces together. I find this to be a very good practice(beside practicing solving a logic into code, you need to be able to read tasks), because very often, in real life, you will encounter tasks where the requirements can be very vague and unclear and left up to you to decide, or the opposite, be very specific and niche, which leaves you no space for interpretation. In my experience solving taks in real life environement, very often, of crucial importance, is your ability to actually understand the task, while code logic might be easy to come up with.

Clear is always better than confusing.

Do you think it would be better if the prompt were re-worded?

No. I think it is clear. No rewording needed.