Vidyalelo
JavaScript · Q13

Graphics And Rendering

Programming · JavaScript · question 13

Q13

Which method is used to obtain the “drawing context” object ?

A.
getContext()
Answer
B.
getObject()
C.
get()
D.
getDrawing()

Answer: Option A

Solution

Answer: Option A
Solution:
Most of the Canvas drawing API is defined not on the canvas element itself, but instead on a “drawing context” object obtained with the getContext() method of the canvas.