DOM Method Demonstrations | Joshua Escobar
1. after()
This paragraph will get a new paragraph after it.
2. before()
This paragraph will get a new paragraph before it.
3. getElementsByClassName()
Box 1
Box 2
Box 3
4. remove()
Click the button to remove this paragraph.
5. replaceChild()
6. removeChild()
7. querySelector()
I will change color