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