The debugger keyword has the same function as setting a breakpoint in the debugger.

The debugger keyword stops the execution of JavaScript, and calls (if available) the debugging function.

With the debugger turned on, this code will stop executing before it executes the third line.
If no debugging is available, the debugger statement has no effect.

Example:
var x = 15 * 5;
debugger;
console.log(x);

Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...