javascript Bingo add called number to a list 1

javascript Bingo add called number to a list




Here is what the above code is Doing:
1. We create a set of numbers that we will use for the game.
2. We create two empty arrays, one for the current number and one for the previous number.
3. We create a function called setGame() that will set the current number to the set of numbers we created and the previous number to an empty array.
4. We create a function called callNum() that will randomly select a number from the current number array and remove it from the array.
5. We create a function called numCalled() that will display the previous numbers called.
6. We create three buttons that will call the functions we created.
7. We create two divs that will display the current number and the previous numbers called.

Similar Posts