Skip to content
Advertisement

Tag: firebug

What is console.log?

What is the use of console.log? Please explain how to use it in JavaScript, with a code example. Answer It’s not a jQuery feature but a feature for debugging purposes. You can for instance log something to the console when something happens. For instance: You’d then see #someButton was clicked in Firebug’s “Console” tab (or another tool’s console — e.g.

Advertisement