0

childNodes

Hello all ! 4 paragraphs and 4 titles were placed inside the dev, then were used childNodes to identify the dev. Why did you find 17? Why are even numbers missing? Where does this explain? Headlines in red. Sorry about the language https://code.sololearn.com/WA3N3YqfrWZn

8th Dec 2019, 8:26 PM
Ahmed Belkhodja
2 Respostas
+ 2
"text is considered as nodes. Comments are also considered as nodes." https://www.w3schools.com/jsref/prop_node_childnodes.asp
8th Dec 2019, 9:54 PM
ODLNT
ODLNT - avatar
8th Dec 2019, 11:52 PM
Calviղ
Calviղ - avatar