js draw square to canvas

JavaScript
// canvas context.fillRect(x, y, height, width);
ctx.fillRect(20, 20, 150, 100);
Source

Also in JavaScript: