Object property 'not defined'


#1


sally's species is undefined and she is undefined
holden's species is undefined and he is undefined


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

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


#2

You are required to identify it as a new Person.


#3

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