What is the JavaScript equivalent of var_dump or print_r in PHP? [duplicate]

I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump in PHP?

9 Answers
9

Leave a Comment