Skip to content

Commit f704e67

Browse files
author
Nicholas Kinsey
committed
added "good" private property example
1 parent b790fae commit f704e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)