DEV Community

Discussion on: Build a Simple Arcade Game With Vanilla JavaScript - DOM Manipulation🚀

Collapse
 
blindfish3 profile image
Ben Calder

Fun. My only suggestion would be to store the score as a variable in the code rather than in the DOM. Once an application grows, storing values in the DOM is a surefire way to generate hard to trace bugs.

Collapse
 
blarzhernandez profile image
Roberto Hernandez

Yes you're right. The idea is playing with the DOM at first. Thanks for sharing!