Reverse a String - Portuguese (#34513)
* Reverse a String - Portuguese * Add invocation Co-Authored-By: MGenteluci <mgenteluci97@gmail.com>
This commit is contained in:
committed by
Jaka Kranjc
parent
452fd54e3c
commit
222948d5ac
@ -56,6 +56,10 @@ reverseString("hello");
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
function reverseString(str) {
|
||||||
|
return str.split('').reverse().join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
reverseString("hello");
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user