Assume I have created an array of objects as shown below:
var person = [{firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}, {firstName:"Arunima", lastName:"Ghosh", age:20, eyeColor:"black"}];
When running
console.log(person);
the output is "[Object,Object]"
I am looking to display the details of the array. What steps should I take?