Skip to content

Commit b35801d

Browse files
authored
Merge pull request #344 from Laxman67/patch-1
Added Option Chaining Operator in Question No. 356 , that return NAN instead of throwing Error on terminal
2 parents c6c1117 + ba6ec7e commit b35801d

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)