Appendix B. Quality Control

If something isn’t going right with your code, there can be any number of reasons. Sometimes, you spell something wrong or get two function names mixed up. Sometimes, you forget to load a library. Sometimes, one part of the code unexpectedly runs before another part. These are all called bugs, and you want to keep them out of your code.

Browser Debugging Tools

In many programming languages, if you make a mistake, it is caught early by the compiler, or your run-time environment gives detailed feedback of why something didn’t go right. What is awesome about JavaScript is that you don’t need any special equipment to start. A text editor and browser are enough. What is not awesome is that by default, your development ...

Get The Web Game Developer’s Cookbook: Using JavaScript and HTML5 to Develop Games 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.