Vidyalelo
JavaScript · Q17

Graphics And Rendering

Programming · JavaScript · question 17

Q17

Which is the method invoked to connect the last vertex back to the first?

A.
closePath()
Answer
B.
close()
C.
connectlast(first)
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
The closePath() method connects the last vertex back to the first, thereby creating a path.