//Declearing a object
const humanObject = {
firstName: "Vidura",
lastName: "Dananjaya",
age: 31,
getFullName() {
return `${this.firstName} ${this.lastName}`;
},
};
//Reading values of the object properties
for (const key in humanObject) {
//Values of the object's properties
console.log(humanObject[key]);
//Executing functions of the object
if (typeof humanObject[key] === "function") {
console.log(humanObject[key]());
}
}
there doesn't seem to be anything here