Skip to content

Commit bd28ac9

Browse files
author
crashtestzombie0@gmail.com
committed
prints X incrementally, Y randomly
1 parent e1e0698 commit bd28ac9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

classwork.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function Particle(startX, startY){
33
this.y = startY;
44
}
55

6-
var particles = []
76

87
var time = 0;
98
var gravity = 0.5;
@@ -18,9 +17,10 @@ Particle.prototype = {
1817
console.log("bottom");
1918
}
2019
}
21-
}
20+
};
2221

22+
var particles = [];
2323
for (var i = 0; i < 101; i++) {
24-
particles.push(new Particle(i, Math.random()*500)){};
24+
particles.push(new Particle(i, Math.random()*500));
2525
}
2626
console.log(particles);

0 commit comments

Comments
 (0)