https://www.w3schools.com/graphics/tryit.asp?filename=trygame_canvas
I was looking at the js code from the tutorial in the link above, I understand mostly what's happening except for the line
this.context = this.canvas.getContext("2d");
Where does this.context come from? surely the word "this" is referring to the myGameArea object and then context is suppose to be some property of myGameArea, but it hasn't been defined. Any help would be greatly appreciated!