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

(a)

Program Plan Intro

To assign the value of each and every item in the keyWords array as the text corresponding to the keyWordElems object collection within the loop.

(b)

Program Plan Intro

To set the ID of the current item in the array keyWords, with a condition that ID should not contain blank spaces instead use replaceWS( ) function which is already defined to replace blank spaces with the character ‘_’.

(c)

Program Plan Intro

To set the ID of the current item in the keyWordElems object collection to “keyword_linkID” where “linkID” is the value of the linkID variable.

Blurred answer