Never been to DZone Snippets before? Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world Same as var_dump for PHP, but for JavaScript. Useful if you do not have Firebug. A typical useage: document.write(var_dump(ANY-JS-VAR,'html')); 1 2 function var_dump(data,addwhitespace,safe