Created
April 28, 2018 17:31
-
-
Save nairihar/e6d3b97f5000cb8e16cb1619fd97dea7 to your computer and use it in GitHub Desktop.
Privates in JavaScript proposal-private-methods, medium, using proposal-private-methods, ECMAScript
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
class C { | |
// private method | |
#foo() { console.log('hi'); } | |
bar() { | |
#foo(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment