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