--- id: 5d7925334c5e22586dd72962 title: Part 22 challengeType: 0 isHidden: true --- ## Description
The ternary operator has the following syntax: ```js const result = condition ? valueIfTrue : valueIfFalse; const result = 1 === 1 ? 1 : 0; // 1 const result = 9 > 10 ? "Yes" : "No"; // "No" ``` Use this operator to return `str` if `str === str2`, and an empty string (`""`) otherwise.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(highPrecedence("2*2") === "" && highPrecedence("2+2") === "2+2" && code.includes("?")); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```