A

Admin • 828.03K Points
Coach

Q. What is the returning value of the getContext() method?

  • (A) Drawing model
  • (B) CanvasRenderingContext2D object
  • (C) Context2D object
  • (D) None of the mentioned
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Call getContext() with the argument “2d” to obtain a CanvasRenderingContext2D object that you can use to draw two-dimensional graphics into the canvas. It is important to understand that the canvas element and its context object are two very different objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.