fix(curriculum): repair of a small logical underdevelopment (#43116)

* repair of a small logical underdevelopment 

a> b is false if a == b

* Apply suggestions (fix small typo )

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
This commit is contained in:
abfipes
2021-08-05 14:54:32 +02:00
committed by GitHub
parent ba388056c3
commit db1a92611a

View File

@ -20,7 +20,7 @@ function findGreater(a, b) {
return "a is greater";
}
else {
return "b is greater";
return "b is greater or equal";
}
}
```
@ -29,7 +29,7 @@ This can be re-written using the conditional operator:
```js
function findGreater(a, b) {
return a > b ? "a is greater" : "b is greater";
return a > b ? "a is greater" : "b is greater or equal";
}
```