ExamVeda
Login
Home
This question belongs to Javascript Graphics And Rendering
Graphics and Rendering
?

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

Answer & Solution
Correct Answer: Option B
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.