Mar 26, 2018

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);