Solution use-the-conditional-ternary-operator.english.md (#18747)
* Update use-the-conditional-ternary-operator.english.md * Use strict equals
This commit is contained in:
committed by
Todd Chaffee
parent
7b8a6e7385
commit
459b8340f0
@ -61,6 +61,8 @@ checkEqual(1, 2);
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
function checkEqual(a, b) {
|
||||||
|
return a === b ? true : false;
|
||||||
|
}
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user