mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-16 07:29:52 +08:00
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
+5
-1
@@ -56,6 +56,10 @@ reverseString("hello");
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
function reverseString(str) {
|
||||
return str.split('').reverse().join('');
|
||||
}
|
||||
|
||||
reverseString("hello");
|
||||
```
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user