Skip to content

Instantly share code, notes, and snippets.

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