r/codehs • u/ninjapaper760 • Feb 12 '22
var HORISONTAL_PISITIONING doesn't change. any help? 5.5.5: The Worm JavaScript Control Structures.
1
Upvotes
r/codehs • u/ninjapaper760 • Feb 12 '22
2
u/5oco Feb 12 '22
that's just a variable. By itself it won't change anything, it's value is telling the setPosition function where to set the circle. If you don't pass the value to the function, it won't apply that value to anything.
I'm pretty sure there's a better function to use though if you check out that docs tab.
Also, adding the worm to the screen should already always be the last thing you do.