Say I have defined an array of object like so:
var person = [{firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}, {firstName:"Arunima", lastName:"Ghosh", age:20, eyeColor:"black"}];
Now doing
console.log(person);
returns "[Object,Object]"
I want to print the details of the array. How do I do this?

[Object, Object]indicates an array containing two objects. In the console you should see a little arrow to the left of that, and if you click it it will expand the array to show more details of the contents.