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

Featured Post

NGINX Unit is dynamically configured using a REST API

There is no static configuration file. All configuration changes happen directly in memory. Configuration changes take effect without requir...