--- id: 587d7b7e367417b2b2512b24 title: Use the Conditional (Ternary) Operator challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(/.+?\s*?\?\s*?.+?\s*?:\s*?.+?/gi.test(code), "checkEqual should use the conditional operator");' - text: '' testString: 'assert(checkEqual(1, 2) === false, "checkEqual(1, 2) should return false");' - text: '' testString: 'assert(checkEqual(1, 1) === true, "checkEqual(1, 1) should return true");' - text: '' testString: 'assert(checkEqual(1, -1) === false, "checkEqual(1, -1) should return false");' ```
## Challenge Seed
```js function checkEqual(a, b) { } checkEqual(1, 2); ```
## Solution
```js // solution required ```