implement a getElementByClassName function from scratch code example Example: getelementbyclass var selector = document.getElementsByClassName('class-name');