var canvas = document.getElementById("app"); var ctx = canvas.getContext('2d'); ctx.fillRect(25, 25, 100, 100);
<canvas id="app"></canvas>