What am I doing wrong with this JavaScript Array? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

What am I doing wrong with this JavaScript Array?

I’m getting all sorts of Reference Errors and I don’t know why. It works on a laptop (not in SL). https://code.sololearn.com/W8II69bfCC8b/?ref=app

27th Oct 2019, 1:48 AM
Rora
1 ответ
0
Rora you’re using iOS, right? If so, the problem probably won’t show up on Android (cuz iOS SL honestly sucks), so put that in the question. Also, wrapping the whole code in “window.onload = () => { code }” gets rid of the reference errors for me.
27th Oct 2019, 3:08 AM
Jason Stone
Jason Stone - avatar