Modify the JavaScript functions in the lights_off.html file. When the html file is
opened in a browser, a grid of buttons is displayed with a button in the middle at position
(2,2) toggled.
The function toggle(i,j) switches the states of the button at position (i,j) between
the white “O” state (on) and the black “X” state (off).
Implement the following JavaScript functions:
press(i,j) – toggling the state of the button pressed at position (i,j) as well as
the state of buttons above, below, left and right of the button pressed as shown in
Figure 3. This function should also called the checkAllOff() function to
check if all buttons are in the off state.

Do you need Assignment help from is one of the best essay help websites on the internet

Kindly click the link below to order quality essays from qualified assignment help experts

We offer well written, referenced and plagiarism free papers

Click here to request for this assignment help