Update article.md

This commit is contained in:
Ilya Kantor 2020-10-20 11:14:04 +03:00 committed by GitHub
parent c69ca0dd1c
commit 44a17a32ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ In many practical cases we'd prefer to get `undefined` instead of an error here
...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.
```js run
// the result of the call document.querySelector('.elem') may be null
// document.querySelector('.elem') is null if there's no element
let html = document.querySelector('.elem').innerHTML; // error if it's null
```