Skip to content

Instantly share code, notes, and snippets.

@jbmilgrom
Last active February 29, 2020 16:23
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 jbmilgrom/adcf2f8d9bcd59a912a1e1d5935db65f to your computer and use it in GitHub Desktop.
Save jbmilgrom/adcf2f8d9bcd59a912a1e1d5935db65f to your computer and use it in GitHub Desktop.
Example of mutative method
class BankAccount {
...
public withdraw(amount) {
this.balance = this.balance - amount;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment