Out of Bounds not working

I’m at the first test on the out of bounds lesson and I cant select an answer to the question.

Hey, Denis, can you post a screenshot?

Can I get some help with this?

1 Like

Hello dear @Denis_Sater , thanks for sharing your query and your utmost patience & sorry for late.

Here array length is 3.

for(i=0;i<array.length-1;i++)

this condition means i will run from 0 to 1 (length-1=2 & 1<2).

Again,

let neighborIndex=i+1;

it means that value will run 1 to 2 .

Again,

array[neighborIndex]

means array[1] & array[2].
Now just have a look what are the items in array[1] & array[2].

Don’t forget to notify further queries.

-Ahnaf

Thats not the issue. The screen itself will not accept input. I can’t answer the first question.

@Denis_Sater, Sorry, I am not sure what the problem is. May be problem with your technical issues of app. Try restarting the app or clearing the app data.