예 : 내가 객체의 요소 객체를 얻을 수있는 방법.childNodes 방법의 반환 컬렉션 요소를 얻는 방법
변수 어린이의function something()
{
var elementObjects = document.getElementById("anElement");
var children = elementObjects.childNodes; // assuming element with id = "anElement" has children
}
. 기본적으로 .childNodes는 요소 객체가 아닌 객체를 반환합니다.