Created
September 17, 2019 04:09
-
-
Save djD-REK/6582fe34c2c97bec076cf288de141578 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: function () { | |
console.log(this.step) | |
}, | |
takeStep: function () { | |
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