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:
@ -20,7 +20,7 @@ function findGreater(a, b) {
|
|||||||
return "a is greater";
|
return "a is greater";
|
||||||
}
|
}
|
||||||
else {
|
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
|
```js
|
||||||
function findGreater(a, b) {
|
function findGreater(a, b) {
|
||||||
return a > b ? "a is greater" : "b is greater";
|
return a > b ? "a is greater" : "b is greater or equal";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user