Assignment 7: Mine Sweeper
BackgroundPage 1 of 20

1. (Review Running JavaScript

We will run JavaScript using Firebug for the code examples.

Make sure you have your sandbox HTML file bookemarked (from last assignment). If you lost it, you can copy the following:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  	<title>Sandbox</title>
  </head>
  <body>
  </body>
  </html>

Make sure you reload the sandbox page when you want to refresh the context.

Console

While you are on the sandbox page, you can use console.log to output code to the console.

Again, you need to refresh the page every time to refresh variables.

Debugging Techniques

Can be found on the bottom of this page.

Next Page

We will now review functions. Next Page

Assignment 7:
Mine Sweeper

Background