Examveda
Examveda

To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.

A. getData

B. toDataURL

C. getContext

D. none of the mentioned

Answer: Option C

Solution(By Examveda Team)

contextType is a DOMString containing the context identifier defining the drawing context associated to the canvas.

This Question Belongs to HTML >> HTML5

Join The Discussion

Related Questions on HTML5