+ 1
NEED HELP with this JS code very BADLY
While following allong a vid, guy uses this code to print hundreds of circles, while mine is exactly the same why wont it even print 3 or 5. for (var i = 0; i < 5; i++) { var x = Math.random() * window.innerWidth; var y = Math.random() * window.innerHeight; c.beginPath(); c.arc(x, y, 30, 0, Math.PI * 2, false); c.strokeStyle = 'blue'; c.stroke; }
2 Antworten
+ 3
hope this helps
https://code.sololearn.com/W5tZ62DP3jM9/?ref=app
+ 1
cool, thank you very much. while i try to figure it out what did i do wrong?