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