Last active
January 16, 2019 12:40
-
-
Save DominicGBauer/bc5dfe75980ae30e119688cb0b8a8e47 to your computer and use it in GitHub Desktop.
error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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