classList.add()
classList.remove()
classList.toggle()
classList.replace()
innerHTML
innerText
textContent
All of the above
hasChildNodes()
childNodes
children
hasChildren()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
element.getValue()
element.innerHTML
element.value
element.innerText
insertBefore()
insertPrevious()
appendBefore()
addBefore()
removeElement()
removeNode()
removeChild()
deleteNode()
replaceNode()
replaceElement()
replaceChild()
replaceWith()
element.content
outerHTML
value
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
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
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
insertAfter()
appendChild()
prependChild()
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()