6/2/2020 3:12:21 PM
Same question asked and answered just today. There are 2 paragraph elements, plus 3 blank text element - before and after first paragraph, and one after the second paragraph.
To add to Ipang 's answer: to get output of 2, use a.children instead of a.childNodes
Learn Playing. Play Learning
Send us a message