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