Vidyalelo
HTML · Q47

HTML5

Programming · HTML · question 47

Q47

Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?

A.
closePath()
B.
beginPath()
Answer
C.
moveTo(x, y)
D.
none of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The beginPath() method begins a path, or resets the current path.