Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

debugger keyword in javascript

// debugger keyword
// You may not hear about the debugger keyword.
// It's a keyword that is used to stop the execution of the code.

const buggyCode = () => {
    debugger;
    console.log("hi");
};

// ...

buggyCode();

console.log("World");
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #debugger #keyword #javascript
ADD COMMENT
Topic
Name
9+7 =