File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
Original file line number Diff line number Diff line change @@ -246,4 +246,5 @@ JavaScript katas on Codewars are programming challenges that help you improve yo
246
246
- ** [ Remove First and Last Character Part Two] ( ./8-kyu/remove-first-and-last-character-part-two.md ) ** <br ><sup >` FUNDAMENTALS ` ` ARRAYS ` ` STRINGS ` </sup >
247
247
- ** [ Removing Elements] ( ./8-kyu/removing-elements.md ) ** <br ><sup >` LISTS ` ` ARRAYS ` ` FUNDAMENTALS ` </sup >
248
248
- ** [ Return Negative] ( ./8-kyu/return-negative.md ) ** <br ><sup >` FUNDAMENTALS ` </sup >
249
+ - ** [ Reversed Strings] ( ./8-kyu/reversed-strings.md ) ** <br ><sup >` STRINGS ` ` FUNDAMENTALS ` </sup >
249
250
- ** [ Simple Comparison?] ( ./8-kyu/simple-comparison.md ) ** <br ><sup >` FUNDAMENTALS ` ` STRINGS ` </sup >
You can’t perform that action at this time.
0 commit comments