Skip to content

Commit bd905f8

Browse files
authored
Fix typo in JavaScript Optional Chaining doc (#7412)
1 parent dedf7e2 commit bd905f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/javascript/concepts/optional-chaining/optional-chaining.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CatalogContent:
1414

1515
The **optional chaining** (**`?.`**) operator simplifies comparing multiple data properties in a chain of connected objects. This is especially valuable if any of the properties are `null`, as the operator will return `undefined` instead of throwing an error.
1616

17-
Optional chaning can be used to validate nested object properties, call optional functions or methods on optional objects, accessing array elements, and more.
17+
Optional chaining can be used to validate nested object properties, call optional functions or methods on optional objects, accessing array elements, and more.
1818

1919
The primary benefits of using optional chaining instead of regular syntax include simplifying the code to achieve the same result, making it easier to read, protecting against runtime errors, and enhancing maintainability.
2020

0 commit comments

Comments
 (0)