how to use debugger in a function for browser console code example
Example: javascript web development debugging
//In code:
console.log(theVariable);
//Then in browser:
F12
//In code:
console.log(theVariable);
//Then in browser:
F12