I am making a game in HTML and JavaScript. I am trying to resize the standard canvas in chrome which is 300 x 150. I want to resize it to 1024 x 576.
Here is my code:
const canvas = document.querySelectory('#canvas');
const c = canvas.getContext('2d')
canvas.width = 1024
canvas.height = 576
<canvas></canvas>