Home / CSE / HTML- CS :: Discussion

Discussion :: HTML- CS

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

  2. A.

     getData

    B.

     toDataURL

    C.

     getContext

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment