<!DOCTYPE html>
<html>
<body>
<canvas id="output" width="350" height="300"></canvas>
<script>
const canvas = document.getElementById('output');
const context = canvas.getContext('2d');
context.fillStyle = 'green';
context.fillRect(0, 0, canvas.width, canvas.height);
</script>
</body>
</html>