context.lineTo(100, 100); context.lineTo(200, 200); context.stroke();
The result was a straight line from (100, 100) to (200, 200), which I wasn't expecting. I expected that nothing would be drawn. I think this would only happen with the following code:
context.beginPath(); context.moveTo(100, 100); context.lineTo(200, 200); context.stroke();
Is my thinking wrong? Why is it happening so? Can anyone explain?