When you’re done with this chapter, you will

  • Recognize errors from the code editor
  • Know how to look for errors in the browser’s JavaScript console
  • Be able to fix projects when a program freezes

Chapter 2Debugging: Fixing Code When Things Go Wrong

Programming is a great skill to have. Being able to fix broken programs is an even better skill to have.

Code breaks. All the time. Sometimes the people you work with make mistakes—no matter how good they are. Sometimes we make mistakes—no matter how careful we are. Mistakes happen and code breaks. And it doesn’t matter who broke it. What really matters is who is going to fix it. Hint: it’s you!

So in this chapter, we’ll look at some strategies to help us fix things—to help us debug ...

Get 3D Game Programming for Kids, 2nd Edition 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.