Single Choice Easy

QWhat is the value returned by the getContext() method?

ID: #5256 Javascript Graphics and Rendering MCQ 132 views
Question Info
#5256Q ID
EasyDifficulty
Javascript Graphics and Rendering MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Drawing model
  • B CanvasRenderingContext2D object
  • C Context2D object
  • D Container
Correct Answer

Explanation

Get a CanvasRenderingContext2D object by calling getContext() with the argument "2d."
This object can be used to draw two-dimensional graphics into the canvas.
It is critical to recognise that the canvas element and its context object are two distinct objects.

Share This Question

Challenge a friend or share with your study group.