A starter program for writing JavaScript games.
- Include script.js in an HTML document containing an element with an id of the 'ball'.
<div id="ball">@</div>
<script src="script.js" />- Script will detect when the left or right arrow keys are pressed and will move the ball element accordingly.