You can debug JavaScript like a pro in just two simple ways: 1. Identify the last piece of code you were working on 2. Leverage the console.log() method to log all your work in the console window.