object - What is the JavaScript equivalent of var_dump or print_r in PHP? - Stack Overflow
I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump in PHP? ... As others have already mentioned, the best way to debug your variables is to use a modern browser's developer console (e.g. Chrome...