How To Debug Javascript - Example Page

Button 1

Click the button above to make an alert pop up.

Button 2

Click the button above to make an alert pop up
(this button is faulty).