Skip to content

Commit 44a17a3

Browse files
authored
Update article.md
1 parent c69ca0d commit 44a17a3

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/07-optional-chaining

1 file changed

+1
-1
lines changed

1-js/04-object-basics/07-optional-chaining/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In many practical cases we'd prefer to get `undefined` instead of an error here
2828
...And another example. In the web development, we can get an object that corresponds to a web page element using a special method call, such as `document.querySelector('.elem')`, and it returns `null` when there's no such element.
2929

3030
```js run
31-
// the result of the call document.querySelector('.elem') may be null
31+
// document.querySelector('.elem') is null if there's no element
3232
let html = document.querySelector('.elem').innerHTML; // error if it's null
3333
```
3434

0 commit comments

Comments
 (0)