-
-
Save codecademydev/7f43d9493ca6785ec28776e89a4915bb 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
var james = { | |
job: "programmer", | |
married: false// add properties to this object! | |
}; | |
function Person(job, married) { | |
this.job = job; | |
this.married = married; | |
} | |
// create a "gabby" object using the Person constructor! | |
var gabby = new Person("student", true); | |
console.log(gabby); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment