Update article.md
This commit is contained in:
parent
44a17a32ca
commit
d4120a0ae5
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ Once again, if the element doesn't exist, we'll get an error accessing `.innerHT
|
|||
|
||||
How can we do this?
|
||||
|
||||
The obvious solution would be to check the value using `if` or the conditional operator `?`, before accessing it, like this:
|
||||
The obvious solution would be to check the value using `if` or the conditional operator `?`, before accessing its property, like this:
|
||||
|
||||
```js
|
||||
let user = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue