Vidyalelo
JavaScript · Q6

Animation

Programming · JavaScript · question 6

Q6

How do we get the DOM object in JavaScript?

A.
getElementbyId()
Answer
B.
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.