+ 16

Please explain this quetion - What is childNode ? And what is Nodes ?

What is the difference between children and childnode...?

18th May 2019, 8:42 AM
Mr AJX 😎😈
Mr AJX 😎😈 - avatar
6 Respostas
+ 10
Children is a property of an Element. Only Elements have children, and these children are all of type Element. However ChildNodes is a property of Node. ChildNodes can contain any node.
18th May 2019, 8:54 AM
Mawlood Fareq
Mawlood Fareq - avatar
+ 14
Mawlud Fariq thank you for information
18th May 2019, 3:31 PM
Mr AJX 😎😈
Mr AJX 😎😈 - avatar
+ 12
Nandyzooker can you explain any example ?
19th May 2019, 8:04 AM
Mr AJX 😎😈
Mr AJX 😎😈 - avatar
+ 3
Child node is nothing but a sub node of a parent node carrying the same properties of its parent node.children is different from child node..say...an object in a class can have any number of children.
19th May 2019, 1:24 AM
Nandyzooker
Nandyzooker - avatar
+ 2
An example of a node is the <html> element and a childnode would be anything that goes in it such as the <head> or <body> element
21st May 2019, 2:36 AM
Kelvin A' Ribeiro
Kelvin A' Ribeiro - avatar
- 1
child node is anything that goes in such as the body head and element
22nd May 2019, 7:48 PM
Jessie Boehmler
Jessie Boehmler - avatar