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