Fix the code

Coming to the last step, we need numbers to parse as integer, so we will replace line 19 with “var sum = parseInt(addend1) + parseInt(addend2);” in the editor pane. This way you can correct your code with the help of Devtools.

Remove the breakpoints and then run the code.

Now you have corrected the code successfully. Make sure you are fixing your original code as well after testing it in the editor pan as it won’t last once you refresh your page.



Debugging JavaScript in Microsoft Edge Browser

While working with JavaScript, we often encounter several errors but finding them out is truly an arduous task. So, in this article, we will learn how to debug JavaScript in Microsoft Edge.

Similar Reads

Steps to debug the JavaScript in Microsoft Edge

Finding the bug Being familiar with sources tool UI Use a breakpoint to pause the code Setting a line-of-code breakpoint Check variable values Fix the code...

Step 7: Fix the code

...