Merge pull request #405 from snakecase/patch-1
Fix incomplete variable in if...else example
This commit is contained in:
commit
c4c293fd1c
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ The same logic using `if..else`:
|
||||||
```js
|
```js
|
||||||
if (age < 3) {
|
if (age < 3) {
|
||||||
message = 'Hi, baby!';
|
message = 'Hi, baby!';
|
||||||
} else if (a < 18) {
|
} else if (age < 18) {
|
||||||
message = 'Hello!';
|
message = 'Hello!';
|
||||||
} else if (age < 100) {
|
} else if (age < 100) {
|
||||||
message = 'Greetings!';
|
message = 'Greetings!';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue