I am learning three.js and in one example, the author creates a canvas element and then binds the renderer to that canvas element.
<canvas id="c">
</canvas>
const renderer = new THREE.WebGLRenderer({canvas});
Then he gets the canvas element and stores it to a variable with canvas = renderer.domElement;
What is the difference between canvas.width and canvas.clientWidth?