minesweeper
minesweeper copied to clipboard
You can remove the prepared function call to the end of the function
https://github.com/kubowania/minesweeper/blob/bb3641fcb5c85918b8bd1594f397342e4ec223a3/app.js#L105
const newSquare = document.getElementById(newId)
click(newSquare)
it can come ones at the end of the function instead in every if block