JavaScript Debugging

Setting Breakpoints

Activate debugging in your browser with F12.

Select "Source" in the debugger menu.

Click on line number 19,20,21,22 to set 4 breakpoints.

Reload the page to trigger the breakpoint.

Use the play button to run your code line by line.