Created
September 17, 2019 04:09
-
-
Save djD-REK/27ac065080ddc47bc02b06870314d8b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const actions = { | |
step: 0, | |
printCount() { | |
console.log(this.step) | |
}, | |
takeStep() { | |
this.step++ | |
} | |
} | |
actions.takeStep() | |
actions.printCount() // 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment