Created
January 25, 2020 20:06
-
-
Save shanelonergan/d785e54687eb04bc74e63b6bfa90e65a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getElementsByClassName2(classNameStr) { | |
const elements = [] // the array we will add matching elements to | |
const firstChildren = this.children // all the children of the element the function is called on | |
return elements | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment