<canvas id="canvas" width="300" height="300"></canvas>HTMLCanvasElement: width property / notebook
HTMLCanvasElement: width property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const canvas = document.getElementById("canvas");
console.log(canvas.width); // 300