JSFiddle - React, Tailwind, and code Playground
by Rafa Ola
HTML
<canvas id="game_canvas" width="640" height="480">
style="border:10px solid red; width:640px; height:480px;
</canvas>
JavaScript
var Context = {
this.canvas = null;
this.context = null;
};
$(docment).ready(function(){
// initalise
canvas = getElementById('game_canvas');
});
function ObjjectSample(a, b) {
var c = 'c';
this.a = a;
this.b = b;
this.getC = function() {
return c;
}
}
ObjjectSample.prototype.logA = function () {
console.log(this.a);
}
if () {
}