Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     getContext()

    B.

     getObject()

    C.

     get()

    D.

     getDrawing()

    View Answer

    Workspace

    Answer : Option A

    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.


Be The First To Comment