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 6RA

(a)

Program Plan Intro

To declare the variable puzzleId and set its value equal to the event object target.

(b)

Program Plan Intro

To modify the innerHTML of the element with the ID “puzzleID” to the value of the attribute value of event object target.

(c)

Program Plan Intro

Using drawHitori( ) function, add a switch case structure with the variable named puzzleID which will have three puzzle cases into the page element.

(d)

Program Plan Intro

To invoke the function setupPuzzle( ) which will set up the features of the selected puzzle.

(e)

Program Plan Intro

To enclose all the commands in the function switchPuzzle( ) within an if statement block.

Blurred answer