Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / writing JavaScript and will create an electronic version of a Bingo board

writing JavaScript and will create an electronic version of a Bingo board

Computer Science

writing JavaScript and will create an electronic version of a Bingo board. This assignment will require students to randomly generate a Bingo board.
 

Bingojs
Create a var (used array)
Create a global var

numbers when generating the card

Write function init() to do the following

1. Write a loop that iterates 24 times and calls function fillCard() passing the loop control variable as an argument

Write function fillCard(i) to do the following

1. Update global variable base, set 1t equal to the element in array baseArray, use the passed in parameter i as the index, multiplied by the value 15

2. Update global variable number, set it equal to the value of global variable base added to a randomly selected number in the range of 1 — 15

Write function resetUsedNumbersArray( to do the following

1. Write a for loop that iterates for the length of the array of used numbers and set the value of each array element to false

jQuery selector.action $('#newCard').click:

1. Call function resetUsedNumberArray to reset the used numbers

2. Call function init to generate a new bingo card

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions