+ 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; }

18th Jan 2018, 6:23 PM
Black Frost
Black Frost - avatar
2 Answers
18th Jan 2018, 7:03 PM
_c0dÂŁ BitÂŁ_
_c0dÂŁ BitÂŁ_ - avatar
+ 1
cool, thank you very much. while i try to figure it out what did i do wrong?
18th Jan 2018, 7:29 PM
Black Frost
Black Frost - avatar