More Options (Needs Debugging)


#1


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

var sally = ("Sally Bowles", 39, "Homo Sapiens");
var holden = ("Holden Caulfield", 16, "Homo Sapiens");
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);

This is probably just me being stupid honestly.


#2

Forgot the "new Person" before the parenthesis.


#3

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