Sitemap

Document.getElementsByClassName()

Dec 13, 2021

--

it’s looks like Document.getElementsById() but it’s not bring node. it bring HTMLCollection.

Press enter or click to view image in full size

What is it? it looks like array. HTMLCollection is these day didn’t use it much , it left historical reason….?

Get Jinny.K’s stories in your inbox

Join Medium for free to get updates from this writer.

사실 문서를 읽어봐도 이해가 안된다. 즉 DOM에서 일반 Node 를 불러오는 것이아니라 HTMLCollection이라는 Object type array?를 불러온다.

console.log results. it looks object. but it looks diffent with array and object.

--

--

Jinny.K
Jinny.K

Written by Jinny.K

Web Developer looking for opportunities