+ 1
canvas
what is getContext("2d"); for?
2 Answers
+ 3
It returns the drawing context of the canvas. The value "2d", makes an object representing a two-dimensional rendering context.
Basically, it creates a 2D canvas object for you to draw with.
0
thank you james flanders.