Skip to content

Commit 6f9bef0

Browse files
Add "Reversed Strings" kata
1 parent 79b07a2 commit 6f9bef0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

8-kyu/reversed-strings.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<h1>Reversed Strings <sup><sup>8 Kyu</sup></sup></h1>
2+
3+
<sup>
4+
<a href="https://www.codewars.com/kata/5168bb5dfe9a00b126000018">
5+
<strong>LINK TO THE KATA</strong>
6+
</a> - <code>STRINGS</code> <code>FUNDAMENTALS</code>
7+
</sup>
8+
9+
## Description
10+
11+
Complete the solution so that it reverses the string passed into it.
12+
13+
```
14+
'world' => 'dlrow'
15+
'word' => 'drow'
16+
```
17+
18+
## Solution
19+
20+
```javascript
21+
const solution = str => str.split('').reverse().join('')
22+
```

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,5 @@ JavaScript katas on Codewars are programming challenges that help you improve yo
246246
- **[Remove First and Last Character Part Two](./8-kyu/remove-first-and-last-character-part-two.md)**<br><sup>`FUNDAMENTALS` `ARRAYS` `STRINGS`</sup>
247247
- **[Removing Elements](./8-kyu/removing-elements.md)**<br><sup>`LISTS` `ARRAYS` `FUNDAMENTALS`</sup>
248248
- **[Return Negative](./8-kyu/return-negative.md)**<br><sup>`FUNDAMENTALS`</sup>
249+
- **[Reversed Strings](./8-kyu/reversed-strings.md)**<br><sup>`STRINGS` `FUNDAMENTALS`</sup>
249250
- **[Simple Comparison?](./8-kyu/simple-comparison.md)**<br><sup>`FUNDAMENTALS` `STRINGS`</sup>

0 commit comments

Comments
 (0)