How can I make a JS Script that lets my user create points on an HTML canvas?
I want them to click somewhere and a point (circle) to appear there. I also need this point to be used when creating a line using
ctx.beginPath();
ctx.moveTo(POINT_A);
ctx.lineTo(POINT_B);
ctx.stroke();