Can someone please help me with this script. I don't know what's wrong with it and I have been over a dozen times but I can't seem to find any errors but all the same it doesn't print.
<html>
<head>
<style type="text/css">
body{ margin:40px; background:#666; }
#my_canvas{ background:#FFF; border:#000 1px solid; }
</style>
<script>
function draw() {
var ctx = document.getElementById('my_canvas').getContext('2 d');
ctx.moveTo(50, 50);
ctx.lineTo(300, 50);
ctx.arkTo(350, 50, 350, 100, 50);
ctx.stroke();
}
window.onload = draw;
</script>
</head>
<body>
<canvas id="my_canvas" width="500" height="350"></canvas>
</body>
</html>