I have my canvas created but cannot draw a line on it. This is what I have written in JavaScript. Everything works but the line won't show.
<canvas id="gameCanvas" width="600" height="600">
Sorry, your browser does not support the canvas tag.
</canvas>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script language="javascript" type="text/javascript">
var c = document.getElementById("gameCanvas");
var ctx = c.getContext("2d);
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,150,75);
ctx.beginPath();
ctx.moveTo(0, 100);
ctx.lineTo(600,100);
ctx.stroke();
</script>