In JS how do I list the contents of an "object" or "array"?

0

I have this unknown object and need to work with it, so I tried to use the console:

console.log('01 =', this);

but only returns me a "01 = Object { length: 1, 1 more… }"

How to do this? or ... what would be the equivalent of "print_r" of php?

Thank you!

ps : a detail I did not quite understand ... heh that " 1 more ... " there in the result .... can be clicked, and mozilla ... displays a giant information about page infos ... but I did not find anything about variables or information of my data ..

    
asked by anonymous 25.03.2016 / 01:07

1 answer

0

Try this:

console.log ('index:' + i); console.log (this);

    
25.03.2016 / 03:13