New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN: 9781305503922
Author: Patrick M. Carey
Publisher: Cengage Learning
bartleby

Concept explainers

Question
Book Icon
Chapter 11, Problem 5RA

(a)

Program Plan Intro

To change the inner HTML of the element with the ID, “puzzleTitle” to the text “Puzzle 1” within the startUp() function.

(b)

Program Plan Intro

TodrawHitori() function using the hitori1Numbers, hitori1Blocks, and hitori1Rating

variables as parameter values and store the HTML code returned by the function in the inner

HTML of the page element with the ID “puzzle”within the startUp() function.

(c)

Program Plan Intro

To declare a variable named puzzlebuttons referencing the page elements with the class name

“puzzles”. Loop through the puzzleButtons object collection and for each button add an event

handler that runs the switchPuzzle() function when the button is clicked.

(d)

Program Plan Intro

To Call the setupPuzzle() function that defines the initial appearance of the first puzzle.

(e)

Program Plan Intro

To add an event handler to the Check Solutions button to run the findErrors() function when

clicked.

(f)

Program Plan Intro

To add an event handler to the Show Solutions button to run the showSolution() function when

clicked.

Blurred answer