I’m very happy with the outcome of my game. I’ve surprised myself with what I was capable of producing with my level of knowledge
However, the function i can’t seem to get working is the clear grid function. Its not making sense to me
if you have a look, - I’ve created the div class and assigned them to all divs created in the loop. but when I try to manipulate them by adding white (clearing them) when the button is clicked. nothing happens. Im sure this is because of the scope but i have no idea how to sort it out.
I tried to with the let babies variable i created there but that still didn’t work. Please help