I'm trying to use html5 canvas and when I do
var c=document.getElementById('myCanvas');
var ctx=c.getContext('2d');
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
and here is the html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="game.js"></script>
</head>
<body>
<canvas id="myCanvas" width="512" height="480" style="border:1px solid #000000;">
</canvas>
</body>
</html>
I have no clue what's wrong