How do we get the DOM object in JavaScript?
A
getElementbyId()
B
getObject()
C
getElement()
D
getNodeobject()
Correct Answer: getElementbyId()
The getElementbyId() is used to get the DOM object in JavaScript by simply calling that function associated with the HTML document. The object in this method gets referenced by the id name.