Update article.md
This commit is contained in:
parent
7487ce9ebe
commit
c69ca0dd1c
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ That's the expected result. JavaScript works like this. As `user.address` is `un
|
||||||
|
|
||||||
In many practical cases we'd prefer to get `undefined` instead of an error here (meaning "no street").
|
In many practical cases we'd prefer to get `undefined` instead of an error here (meaning "no street").
|
||||||
|
|
||||||
...And another example. In the web development, we may need the information about an element on the page. We can find this element using a special method call, such as `document.querySelector('.elem')`, and it either returns an object or `null` when there's no such element.
|
...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
|
```js run
|
||||||
// the result of the call document.querySelector('.elem') may be null
|
// the result of the call document.querySelector('.elem') may be null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue