Testing Out JavaScript
Depending on your browser of choice, there are a few different options you have to follow along with the code snippets I use in the rest of the chapter. Although I typically use Firefox for my development, I have been switching more and more between the tools in Firefox and those in the Chrome DeveloperTools. Each has a slightly different approach to organizing its feedback to help you detangle what is going on in your code.
Firebug
I have been a long-time Firefox user, and a big reason has been the Firebug tool (http://getfirebug.com/
). This Firefox extension adds a console so you can not only debug and trace what is going on in your JavaScript code, but also inspect and edit HTML elements (including CSS in realtime), ...
Get Beginning Facebook Game Apps Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.