Change the number number to negative number in Ternary Operators Section

pull/36/head
nyan-lin-tun 6 years ago
parent 6be51b8a2a
commit d32c73052c

@ -306,17 +306,17 @@ No need for a rain coat.
let number = 5
number > 0
? console.log(`${number} is a positive number`)
: console.log(`${number} is a number number`)
: console.log(`${number} is a negative number`)
number = -5
number > 0
? console.log(`${number} is a positive number`)
: console.log(`${number} is a number number`)
: console.log(`${number} is a negative number`)
```
```sh
5 is a positive number
-5 is a number number
-5 is a negative number
```
### Operator Precendence

Loading…
Cancel
Save