Files
Tic-Tac-Toe-Game/script/game-functions/addStartButtonFunctionality.js

6 lines
178 B
JavaScript

export default function addStartButtonFunctionality(game) {
const button = document.getElementById('start')
button.addEventListener('click', () => game(false, false))
}