Skip to content

Commit ba6ec7e

Browse files
authored
Update README.md
Added Option Chaining Operator
1 parent c6c1117 commit ba6ec7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6809,7 +6809,7 @@ Because of hoisting, functions can be used before they are declared.
68096809
diameter() {
68106810
return this.radius * 2;
68116811
},
6812-
perimeter: () => 2 * Math.PI * this.radius,
6812+
perimeter: () => 2 * Math.PI * this?.radius,
68136813
};
68146814
```
68156815

0 commit comments

Comments
 (0)