cat
combines attributes and behaviors of a cat in the following objectlet cat = {
age: 4,
name: 'Bella',
meow() {
console.log('Meowwww');
}
}
Instead of the object, we would have separated function and variables, which is not organized waylet catName = 'Bella';
let catAge = 4;
function meow() {
console.log('Meowwww');
}