Solved

Which of the Following Methods Uses Familial Reference to Loop

Question 48

Multiple Choice

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 }

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions