Missing parentheses
from: Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours
On page 21 in the “Watch Out!” section I wrote that you should add an attribute to your BODY tag so that your script will run and your CANVAS will show up on the page. But there is some missing code there.
It should read:
<body onload="drawSquare()">