+ 1

Whyyy this code doesn't workk? js

I need help https://code.sololearn.com/Wd7v99IWdecn/?ref=app

12th Sep 2017, 6:40 PM
Ferrum
Ferrum - avatar
2 Answers
+ 1
The error 'property style is undefined' is because cube isn't realy a element with a style property. To fix it you have to change the x and y and then draw it again, make sure you clear the canvas before you draw, else you get a green line. For example: https://code.sololearn.com/Ww4tUJf1i3LL/?ref=app
12th Sep 2017, 7:18 PM
Dr_Donko89
Dr_Donko89 - avatar
+ 1
Thanks!!
12th Sep 2017, 7:49 PM
Ferrum
Ferrum - avatar