| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function stepOne() | 2 function stepOne() |
| 3 { | 3 { |
| 4 console.log(1); | 4 console.log(1); |
| 5 } | 5 } |
| 6 | 6 |
| 7 function stepTwo() | 7 function stepTwo() |
| 8 { | 8 { |
| 9 alert("Test failed. The second button event still fired."); | 9 alert("Test failed. The second button event still fired."); |
| 10 } | 10 } |
| 11 </script> | 11 </script> |
| 12 | 12 |
| 13 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. Set a break po
int inside the stepOne() function. | 13 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. Set a break po
int inside the stepOne() function. |
| 14 Now click the Step One button in the page. The breakpoint should be hit. While p
aused at the breakpoint | 14 Now click the Step One button in the page. The breakpoint should be hit. While p
aused at the breakpoint |
| 15 click on the Step Two button. You should not see an alert dialog. Continue scrip
t.</p> | 15 click on the Step Two button. You should not see an alert dialog. Continue scrip
t.</p> |
| 16 <button onclick="stepOne()">Step One</button><br><br> | 16 <button onclick="stepOne()">Step One</button><br><br> |
| 17 <button onclick="stepTwo()">Step Two</button> | 17 <button onclick="stepTwo()">Step Two</button> |
| OLD | NEW |