What is the JavaScript equivalent of var_dump or print_r in PHP? [duplicate] May 15, 2022 by IT Nursery 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