-
-
Save codecademydev/d3c2e670718b9b554dedd95554e57f41 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(name,age) { | |
this.name = name; | |
this.age = age; | |
this.species = "Homo Sapiens"; | |
} | |
var sally = new Object(Person); | |
sally.name("Sally Bowles"); | |
sally.age(39); | |
sally.species(species); | |
var holden = new Object(Person); | |
holden.name("Holden Caufield"); | |
holden.age(16); | |
holden.species(species); | |
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment