Q6
How do we get the DOM object in JavaScript?
A.
getElementbyId()
AnswerB.
getObject()
C.
getElement()
D.
none of the mentioned
Answer: Option A
Solution
Answer: Option A
Solution:
The getElementbyId() is used to get the DOM object in JavaScript by simply calling that function associated with the HTML document.