Fix incomplete variable in if...else example
It is in section "Multiple '?'".
This commit is contained in:
parent
9365275467
commit
c360e9d5f9
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