Am trying to draw three circles on the page but nothing shows up, anyone can tell me what is wrong here?
<body>
<canvas id="myCircle(3)" width="60" height="60"> Your browser does not support JavaScript,
please update it before you continue</canvas>
<script type="text/javascript">
function myCircle(myCircle) {
var c = document.getElementById("myCircle");
var ctx = c.getContext("2d");
ctx.beginPath();
ctx.arc(30, 30, 26, 0, 2 * Math.PI);
ctx.stroke();
return myCircle;
}
</script>
</body>
Thank you :)