Any programmer will tell you that it is incredibly common to be making great progress working through a coding problem when all of a sudden an error like this gets thrown at you:
Alternatively, you might have finally finished implementing a complex function only to find it doesn’t work at all as you expected:
console.log('The square root of 4 is ' + squareRoot(4)); => 'The square root of 4 is 1.87878787'
If any of these things happen to you, don’t fret! In our article Thinking About Errors Differently in Your Code, you discovered that these experiences are normal for all developers, no matter how experienced they are. A key skill developers possess is knowing how to debug their code when issues occur.
Alright, are you ready to begin your transition from frustrated coder to bug squasher extraordinaire? Let’s get started!