Skip to content

Commit 3d0934d

Browse files
author
juanantonioledesma
committed
Add "Convert boolean values to strings 'Yes' or 'No'." kata
1 parent a475224 commit 3d0934d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<h1>Convert boolean values to strings 'Yes' or 'No'. <sup><sup>8 Kyu</sup></sup></h1>
2+
3+
<sup>
4+
<a href="https://www.codewars.com/kata/53369039d7ab3ac506000467">
5+
<strong>LINK TO THE KATA</strong>
6+
</a> - <code>FUNDAMENTALS</code>
7+
</sup>
8+
9+
## Description
10+
11+
Complete the method that takes a boolean value and return a `"Yes"` string for `true`, or a `"No"` string for `false`.
12+
13+
## Solution
14+
15+
```javascript
16+
const boolToWord = bool => (bool ? 'Yes' : 'No')
17+
```

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ JavaScript katas on Codewars are programming challenges that help you improve yo
129129
- **[Chuck Norris VII - True or False? (Beginner)](./8-kyu/chuck-norris-vii-true-or-false-beginner.md)**<br><sup>`FUNDAMENTALS` `ALGORITHMS`</sup>
130130
- **[Compare within margin](./8-kyu/compare-within-margin.md)**<br><sup>`FUNDAMENTALS` `LOGIC`</sup>
131131
- **[Convert a string to an array](./8-kyu/convert-a-string-to-an-array.md)**<br><sup>`ARRAYS` `STRINGS` `FUNDAMENTALS`</sup>
132+
- **[Convert boolean values to strings 'Yes' or 'No'.](./8-kyu/convert-boolean-values-to-strings-yes-or-no.md)**<br><sup>`FUNDAMENTALS`</sup>
132133
- **[Is your period late?](./8-kyu/is-your-period-late.md)**<br><sup>`FUNDAMENTALS` `DATE TIME`</sup>
133134
- **[Multiplication table for number](./8-kyu/multiplication-table-for-number.md)**<br><sup>`FUNDAMENTALS` `STRINGS`</sup>
134135
- **[Multiply](./8-kyu/multiply.md)**<br><sup>`DEBUGGING` `FUNDAMENTALS`</sup>

0 commit comments

Comments
 (0)