> Uncaught TypeError: Cannot read properties of null (reading 'getContext')
let canvas = document.querySelector('canvas'); canvas.getContext('2d');
<html> <body> <cnavas></cnavas> </body> </html>