Vidyalelo
JavaScript · Q6

Graphics And Rendering

Programming · JavaScript · question 6

Q6

Which is a possible way of finding all the img elements in the document?

A.
document(images)
B.
document.images[]
Answer
C.
document(img)
D.
all of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The best suited option is document.image[] to find all img elements in the document.