Skip to content

Commit d0dac67

Browse files
committed
Merge pull request airbnb#16 from pyrotechnick/patch-1
added "good" private property example
2 parents b790fae + f704e67 commit d0dac67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@
900900
// bad
901901
this.__firstName__ = 'Panda';
902902
this.firstName_ = 'Panda';
903+
904+
// good
905+
this._firstName = 'Panda';
903906
```
904907

905908
- Name your functions. This is helpful for stack traces.

0 commit comments

Comments
 (0)