Fix incomplete variable in if...else example

It is in section "Multiple '?'".
This commit is contained in:
snakecase 2018-03-11 09:46:38 +05:00 committed by GitHub
parent 9365275467
commit c360e9d5f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ The same logic using `if..else`:
```js
if (age < 3) {
message = 'Hi, baby!';
} else if (a < 18) {
} else if (age < 18) {
message = 'Hello!';
} else if (age < 100) {
message = 'Greetings!';