-
-
Save codecademydev/3956cb2576e357889c7d30e533fdcf06 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(job, married) { | |
this.job = job; | |
this.married = married; | |
this.speak = function() { | |
console.log("Hello!"); | |
};// add a "speak" method to Person! | |
} | |
var user = new Person("Codecademy Student",false); | |
user.speak(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment