//object in table
console.table({
firstname: "Kinjal",
lastname: "Suryavanshi"
});
//array in table
console.table(['graps','apple','orange']);
const objArray = [
{ name: 'John', age: 30, occupation: 'teacher' },
{ name: 'Jane', age: 25, occupation: 'designer' },
{ name: 'Joe', age: 20, occupation: 'developer' },
];
console.table(objArray);
// an object whose properties are strings
function Person(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
var me = new Person("John", "Smith");
console.table(me);
// console.table
// Useful for printing an array.
const arr = [1, 2, 3, 4, 5];
console.table(arr);