What value does cat1.name have after executing the following code?
function Cat(name, age) {
this.name = name;
this.age = age;
}
const cat1 = new Cat('Whiskers', 3);
What value does cat1.name have after executing the following code?
function Cat(name, age) {
this.name = name;
this.age = age;
}
const cat1 = new Cat('Whiskers', 3);