+ 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
2 ответов
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