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 12, Problem 9RA

(a)

Program Plan Intro

To declare the keyWordListItem variable, which will store li element.

(b)

Program Plan Intro

To declare the variable named keyWordLink which will store an element ‘a’.

(c)

Program Plan Intro

To change the innerHTML of the element keyWordLink and set the value of keyWordLink element to the value of the text of [j]th position of the keyWords array.

(d)

Program Plan Intro

To declare a variable linkID containing the id returned by the parameterized function replaceWS( ) which is using the id of the [j]th position of the array keyWords as its parameter.

(e)

Program Plan Intro

To change the href attribute of the variable keyWordLink to ‘keyWord_linkID” where linkID is the value of the linkID variable.

(f)

Program Plan Intro

To append the keyWordLink to keyWordList variable and then append keyWordList to the above created ordered list.

Blurred answer