+ 5

What does it mean when I try to run my code and the console says "Uncaught ReferenceError: myObstacles is not defined"?

https://code.sololearn.com/WO84hylfGcl0/?ref=app

30th Nov 2018, 2:59 PM
Abraham
Abraham - avatar
5 Antworten
+ 5
Instead of var myObstacle write var myObstacles On line 17
30th Nov 2018, 3:08 PM
Rstar
Rstar - avatar
+ 6
You have defined it as var myObstacle // just remove that 's'
30th Nov 2018, 3:03 PM
Rstar
Rstar - avatar
+ 6
Oh I see, thank you
30th Nov 2018, 3:06 PM
Abraham
Abraham - avatar
+ 5
Awesome!!
30th Nov 2018, 3:12 PM
Abraham
Abraham - avatar
30th Nov 2018, 3:11 PM
Rstar
Rstar - avatar