Using console.log() in JavaScript
Using console.log() in JavaScript
Most web browsers support writing message to console using console.log() method.
This helps in debugging the javascript code.
Opening Javascript Console
We can open the JavaScript console from the Developer tools(Dev tools in Safari).
You can also invoke it using following shortcuts :
Windows(IE, Chrome, Firefox)
F12, then click Console tab
Mac OS
Safari : Cmd + Opt + C
Chrome : Cmd + Opt + J
F…
View On WordPress












