0
Why canât I see my game pieces on the grid?
https://code.sololearn.com/WIGYx83rvJhh/?ref=app I made sure they were children of their parents, they have a higher z-index, and have a color
2 Answers
+ 4
window.onload = init;
Just remove the parentheses ;)
EDIT: You also want to set `backgroundColor`, not `color`.
Even better would be, to `.setAttribute` a `class` for your game pieces, and set the rest of the styles in CSS.
0
I'll have to modify your code, I will improve it, then, I will post the link