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