0

why the runtime error? how to define function context?

https://code.sololearn.com/Wmi18XlUUZK9/?ref=app

5th Jun 2022, 6:10 AM
sweetswing2460
1 Respuesta
+ 3
// Fix your coding errors var canvas = document.getElementById("canvas"); var context = canvas.getContext("2d"); window.onload = () => { context.moveTo(0,0); context.lineTo(600,400); context.stroke(); }
5th Jun 2022, 7:25 AM
SoloProg
SoloProg - avatar