23. More Options


#1

function Person(name,age) {
this.name = name;
this.age = age;
this.species = "Homo Sapiens";
}

var sally = new Person("Sally Bowles", 39);
var holden = new Person("Holden Caulfield", 16);
console.log("sally's species is " + sally.species + " and she is " + );
console.log("holden's species is " + holden.species + " and he is " + );

What is wrong??


#2

On both console.log statements then you just left the plus signs at the end instead of adding Sally's and Holden's ages


#3

You're right! Thanks for the help!


#4

NP, I'm glad to help :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.