Skip to content

Instantly share code, notes, and snippets.

@DominicGBauer
Created January 16, 2019 12:41
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 DominicGBauer/bb441f1de3eab0d9081ec4cb8fc6ea26 to your computer and use it in GitHub Desktop.
Save DominicGBauer/bb441f1de3eab0d9081ec4cb8fc6ea26 to your computer and use it in GitHub Desktop.
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind() {
console.log(this.sweat);
}
}
const yoda = new Master();
yoda.tenThousandHours('sweaty, knees weak, arms are heavy');
yoda.grind();
const grind = yoda.grind;
grind();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment