DEV Community

Discussion on: What you learning about this weekend?

Collapse
 
willyvaessen profile image
Willy Vaessen

I'm practicing with changing elements on a website, through JavaScript.
My Colored Boxes page shows what I have working so far:

  • Clicking/tapping a box toggles its color between Red and Blue
  • Every click/tap increments the attempts counter with 1

What I'm trying to achieve now, is to check if all boxes have the Red color and if that is the case, the "game" is finished.

Once I have that working, I want to see if I can adjust it to a different amount of boxes, instead of the hard-coded 16 I have now.