Identify the syntax for looping through a collection of child nodes using the counter variable method.

A. for (var i = 0; i< node.length.node; i++) {commands}
B. for (var i = 0; i< node.childNodes.length; i++) {commands}
C. for (var i = 1; i< node.childNodes.length; i--) {commands}
D. for (var i = 1; i< childNodes.length; i++) {commands}


Answer: B

Computer Science & Information Technology

You might also like to view...

How is an attachment field identified in a table?

A) Paperclip B) Pound sign C) File icon D) Open book

Computer Science & Information Technology

Automatic spelling and grammar checking is set under the Proofing options in Backstage view

Indicate whether the statement is true or false

Computer Science & Information Technology

The instructions in a ____________ loop might not be processed at all, wereas the instructions in a _________ loop are always processed at least once.

Posttest, Pretest Pretest, Posttest

Computer Science & Information Technology

A(n) dependent class styles any element.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology