DOM Flashcards
1
Q
What does the .remove() method do?
A
The Element.remove() method removes the element from the tree it belongs to.
2
Q
What does document.all() method do? (deprecated)
A
The Document interface’s read-only all property returns an HTMLAllCollection rooted at the document node. In other words, it returns all of the document’s elements, accessible by order (like an array) and by ID (like a regular object).