Hi, I am new to javascript. Syntactically, this code seems correct, but for some strange reason, it refuses to execute. I know it's bad practice to include the script within the same document, but I just want this to work. Thank you in advance.
<!DOCTYPE html>
<html>
<head>
<title>
Test
</title>
<body>
<p>
Hello World.
</p>
<br>
<p id = "bye">
</p>
<canvas id="canvas1" width="200" height = "100" style="border:1px solid #000000;">
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
document.getElementById("bye").innerHTML = "bye";
</script>
</body>
</head>
</html>