23.04.2013 Views

javascript

javascript

javascript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OK, fix that typo, reverting alrt to alert, and then delete the closing parentheses like so:<br />

alert("Don't Panic";<br />

Now click Run. As Figure 11 displays, JavaScript prints a SyntaxError containing the message<br />

"missing ) after argument list". Note that a syntax error in programming is like a grammar error in<br />

writing.<br />

Figure 11. OopsJavaScript returns a SyntaxError saying "missing ) after argument list".<br />

Don’t panic if you get an error. It probably just means you need to fix a typo or two.<br />

Now that you have installed and gained familiarity with Firebug, let’s begin exploring ECMAScript!<br />

■ PREFACE<br />

xxiii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!