The front end canvas January 27, 2024 by Eric Miller No Comments Var canvas = document.getelementById (“canvas”); Var CTX = canvas.getContext(“2d”); Ctx.rect () // Requires stroke 4. Ctx.strokerect () // does not require stroke 5. Ctx.fillrext // Fills 6. Ctx.clearrect // Clears a rectangular area