Created
May 25, 2011 10:21
-
-
Save digitarald/990738 to your computer and use it in GitHub Desktop.
Object Literal Notation in CS
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 lost = { | |
loc : "Island", | |
get location () { | |
return this.loc; | |
}, | |
set location(val) { | |
this.loc = val; | |
} | |
}; | |
lost.location = "Another island"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment