Skip to content

Instantly share code, notes, and snippets.

@robinske
Created May 27, 2014 20:05
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 robinske/5865c1b39014d0bc75a1 to your computer and use it in GitHub Desktop.
Save robinske/5865c1b39014d0bc75a1 to your computer and use it in GitHub Desktop.
function withdraw(amount) {
if (balance >= amount) {
balance = balance - amount
return amount
} else {
return 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment