Skip to content

Instantly share code, notes, and snippets.

@birnam
Created June 25, 2013 19:51
Show Gist options
  • Save birnam/5861787 to your computer and use it in GitHub Desktop.
Save birnam/5861787 to your computer and use it in GitHub Desktop.
sample object access
var savings = {
"AR": 3.5,
"AK": 0.4,
"AL": 8.2
};
function getSavings(state) {
return savings[state];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment