+ 1
Whyyy this code doesn't workk? js
I need help https://code.sololearn.com/Wd7v99IWdecn/?ref=app
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
+ 1
Thanks!!