The basic of the debugging is printing variables. But how to write such an object in JavaScript? Just write a simple code:
console.debug (variable)
Variable content appears in the console.
How to display console in Firefox?
- Install Firebug extension
- Right-click anywhere on the page
- Select “element to examine”
How to display console in Google Chrome?
- Right-click anywhere on the page
- Select “check control”