Merge pull request #405 from snakecase/patch-1

Fix incomplete variable in if...else example
This commit is contained in:
Ilya Kantor 2018-03-31 22:59:20 +03:00 committed by GitHub
commit c4c293fd1c
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!';