Drawalineoncanvas,requiringthestartcoordinatetobe(0,0),theendcoordinatetobe(100,50),andthefollowingcodeiscorrectlyfilledin()<canvasid=”myCanvas“width=”200px”height=”200px”></canvas>;varc=document.getElementById(“myCanvas”);varctx=c.getContext(“2d”);__________;__________;__________;
A
A.ctx.moveFrom(0,0) ctx.lineTo(100,50) ctx.stroke()
B
B.ctx.lineFrom(0,0) ctx.lineTo(100,50) ctx.stroke()
C
C.ctx.moveTo(0,0) ctx.lineTo(100,50) ctx.stroke()
D
D.ctx.moveTo(0,0) ctx.lineTo(100,50) ctx.strokeText()