Skip to content

Instantly share code, notes, and snippets.

@digitarald
Created May 25, 2011 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitarald/990738 to your computer and use it in GitHub Desktop.
Save digitarald/990738 to your computer and use it in GitHub Desktop.
Object Literal Notation in CS
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