replaceNode()
replaceElement()
replaceChild()
replaceWith()
insertBefore()
insertAfter()
appendChild()
prependChild()
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
hasChildNodes()
childNodes
children
hasChildren()
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
innerHTML
outerHTML
textContent
value
classList.add()
classList.remove()
classList.toggle()
classList.replace()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
innerText
All of the above
element.getValue()
element.innerHTML
element.value
element.innerText
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
removeElement()
removeNode()
removeChild()
deleteNode()
element.content
What will the following JavaScript code do?
var element = document.getElementById("myDiv");element.remove();
Remove the element with the ID "myDiv" from the DOM
Remove all child elements inside the element with the ID "myDiv"
Hide the element with the ID "myDiv"
Move the element with the ID "myDiv" to a different location
insertPrevious()
appendBefore()
addBefore()