Create a line in the given code by
completing the following steps:
- Begin a path by using
beginPath()
.
- Move the start to x-coordinate, 200, and y-coordinate, 20, using
moveTo()
.
- Create a line till x-coordinate, 60, and y-coordinate, 75, using
lineTo()
.
- Use the
stroke()
method to make the line visible on the canvas.