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

  • (A) Drawing model
  • (B) CanvasRenderingContext2D object
  • (C) Context2D object
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) CanvasRenderingContext2D object
Explanation: 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.
Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
173
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate