27.10.2019, 22:39
You can do this like below:
Code:
const cvs = document.querySelector("icanvas2")
const ctx = cvs.getContext("2d");
console.log(cvs);
Done is better than perfect