how to make a circle in js

JavaScript
 ctx.beginPath();
ctx.arc(100, 75, 50, 0, 2 * Math.PI);
ctx.stroke(); 
Source

Also in JavaScript: