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