The following function uses an if-else statement to check a condition:
<blockquote>function findGreater(a, b) {<br> if(a > b) {<br> return "a is greater";<br> }<br> else {<br> return "b is greater";<br> }<br>}</blockquote>
This can be re-written using the <code>conditional operator</code>:
<blockquote>function findGreater(a, b) {<br> return a > b ? "a is greater" : "b is greater";<br>}</blockquote>
</section>
## Instructions
<sectionid='instructions'>
Use the <code>conditional operator</code> in the <code>checkEqual</code> function to check if two numbers are equal or not. The function should return either true or false.
</section>
## Tests
<sectionid='tests'>
```yml
- text: <code>checkEqual</code> should use the <code>conditional operator</code>