how to stop javascript code example
Example 1: disable javascript chrome
1. Ctrl+Shift+I
2. Ctrl+Shift+P
3. Type 'javascript'
4. Select '[Debugger] Disable Javascript'
Example 2: stop a function javascript
function func() {
if (conditionToStopFunction)
return; //Nothing after return will be executed
console.log("Hello World"); //This will not be executed if 'conditionToStopFunction' is true
}