+ 1

Shouldnt this js return true false?

js problem https://code.sololearn.com/Wzi6RhS0oAm8/?ref=app

7th Aug 2018, 4:20 AM
Robert Allen
Robert Allen - avatar
4 Antworten
+ 1
No cycling due to return on first iteration.
7th Aug 2018, 4:32 AM
Calviղ
Calviղ - avatar
+ 1
false false for 2 and 3
7th Aug 2018, 4:23 AM
Calviղ
Calviղ - avatar
0
so it's not cycling through the list?
7th Aug 2018, 4:24 AM
Robert Allen
Robert Allen - avatar
0
i thought i put it in a for loop that would do that..
7th Aug 2018, 4:25 AM
Robert Allen
Robert Allen - avatar