What is the JavaScript equivalent of var_dump or print_r in PHP? [duplicate]
This question already has answers here: Is there an equivalent for var_dump (PHP) in Javascript? (19 answers) Closed 4 years ago. 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