--- id: cf1111c1c12feddfaeb3bdef title: Use Conditional Logic with If Statements challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof trueOrFalse === "function", "trueOrFalse should be a function");' - text: '' testString: 'assert(typeof trueOrFalse(true) === "string", "trueOrFalse(true) should return a string");' - text: '' testString: 'assert(typeof trueOrFalse(false) === "string", "trueOrFalse(false) should return a string");' - text: '' testString: 'assert(trueOrFalse(true) === "Yes, that was true", "trueOrFalse(true) should return "Yes, that was true"");' - text: '' testString: 'assert(trueOrFalse(false) === "No, that was false", "trueOrFalse(false) should return "No, that was false"");' ```
## Challenge Seed
```js // Example function ourTrueOrFalse(isItTrue) { if (isItTrue) { return "Yes, it's true"; } return "No, it's false"; } // Setup function trueOrFalse(wasThatTrue) { // Only change code below this line. // Only change code above this line. } // Change this value to test trueOrFalse(true); ```
## Solution
```js // solution required ```