Created
December 2, 2014 19:55
-
-
Save devdays/24bbcb05a5e80d16b7c2 to your computer and use it in GitHub Desktop.
Object Javascript - Initialize object by setting properties
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 laundryTask = new Object(); | |
laundryTask.description= "Get shirts"; | |
laundryTask.hoursToComplete = 1; | |
laundryTask.urgency = "low"; | |
laundryTask.done = false; | |
console.log(JSON.stringify(laundryTask)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment