Reverse a String - Portuguese (#34513)

* Reverse a String - Portuguese

* Add invocation

Co-Authored-By: MGenteluci <mgenteluci97@gmail.com>
This commit is contained in:
Matheus Genteluci
2019-03-16 17:30:58 -03:00
committed by Jaka Kranjc
parent 452fd54e3c
commit 222948d5ac

View File

@ -56,6 +56,10 @@ reverseString("hello");
<section id='solution'>
```js
// solution required
function reverseString(str) {
return str.split('').reverse().join('');
}
reverseString("hello");
```
</section>