Merge pull request #71 from jeff-wolff/patch-2

maintain consistency in example
This commit is contained in:
Ilya Kantor 2017-07-08 12:38:33 +03:00 committed by GitHub
commit 48b6f4a663

View file

@ -143,7 +143,7 @@ For example:
let accessAllowed = (age > 18) ? true : false;
```
Technically, we can omit parentheses around `age > 14`. The question mark operator has a low precedence. It executes after the comparison `>`, so that'll do the same:
Technically, we can omit parentheses around `age > 18`. The question mark operator has a low precedence. It executes after the comparison `>`, so that'll do the same:
```js
// the comparison operator "age > 18" executes first anyway