Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created May 19, 2010 06:38
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 iammerrick/406043 to your computer and use it in GitHub Desktop.
Save iammerrick/406043 to your computer and use it in GitHub Desktop.
function determine_pay(average)
{
var action = age > 25 ? 'divide' : 'multiply';
if(action === 'divide')
{
return age / average;
}
if(action === 'multiply')
{
return age * average;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment