Chapter 1, Exercise 3 – Browser Debugging Tools
Learn how to use your browser’s debugging tools. It’s likely you’ll have access to breakpoints, watch variables, and the variable stack, so read about and experiment with them. Learning your way around the tools now can be quite a time-saver when you’re debugging later. Try adding breakpoints within the init and startGame functions in game.js and trace the code as it runs.
Debugging in Firefox: https://developer.mozilla.org/en-US/docs/Tools/Debugger
Debugging in Chrome: https://developer.chrome.com/devtools
Debugging in Internet Explorer: https://msdn.microsoft.com/library/ie/bg182326%28v=vs.85%29