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

6 lines
158 B
JavaScript

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