BroCode Games like Snake
https://www.youtube.com/watch?v=Je0B3nHhKmM&t=12s&ab_channel=BroCode
Using JS to control HTML
like
cells.forEach(cell => cell.addEventListener("click", cellClicked));
//single line effectively adds click functionality to every cel
Already done PaperSissors and TicTacToe using Perplexity to understand line of code like this
Comments
Post a Comment