When I add some object in editor & when I go to the browser to see the output, it only shows [object object] .Can any one tell me how to see the output of object in browsers
here is the code
// alert('Hello world ');
var contacts = new Array();
var add = function(firstName, lastName, phoneNumber, email) {
this.firstName = firstName;
this.lastName = lastName;
this.phoneNumber = phoneNumber;
this.email = email;
};
contacts[contacts.length] = new add("imtiaz", "ahmed", "01794705874", "imtiaz@gmail.com");
contacts[contacts.length] = new add("johny", "bob", "998978788", "bob@gmail.com");
document.write("</br>" + contacts);