Which of the following methods uses familial reference to loop through a collection of child nodes?

A. for (var n = node.firstChild; n !== null; n = n.nextSibling) {commands}
B. for (var n = node.firstChild; n !== null; n = n.previousSibling) {commands}
C. for (var n = node.firstChild; n !== null; n = n.firstChild) {commands}
D. for (var n = node.firstChild; n !== null; n = n.lastChild) {commands}


Answer: A

Computer Science & Information Technology

You might also like to view...

Decorative formats such as outlines, shadows, text glow and colors are called ________ ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Adding a "b" to the end of the method argument of the fopen() function forces the file to be opened in ____________________ mode.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Effective project reporting requires _____.

A. strong communication skills B. strong intervention skills C. strong negotiation skills D. strong leadership skills

Computer Science & Information Technology

Future potential biometric applications include ATM machine use, travel and tourism, telephone transactions, and public identity cards.

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

Computer Science & Information Technology