Merge pull request #18 from npnjuguna/npnjuguna-if-else-if-example-fix

if else if example fix
pull/20/head
Asabeneh 5 years ago committed by GitHub
commit e403247a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,13 +134,13 @@ if (condition) {
```js ```js
let a = 0 let a = 0
if (a > 0) { if (a > 0) {
console.log(`A${a} is a positive number`) console.log(`${a} is a positive number`)
} else if (a < 0) { } else if (a < 0) {
print(`${a} is a negative number`) console.log(`${a} is a negative number`)
else if (a == 0) { } else if (a == 0) {
print(` ${a} is zero`) console.log(`${a} is zero`)
} else { } else {
print('${a) is not a number') console.log(`${a} is not a number`)
} }
``` ```

Loading…
Cancel
Save