Q. Which method is used to obtain the “drawing context” object ?
β
Correct Answer: (A)
getContext()
Explanation: 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.