--- id: a202eed8fc186c8434cb6d61 title: Reverse a String isRequired: true challengeType: 5 videoUrl: '' localeTitle: Revertir una cadena --- ## Description
Invierta la cadena provista. Es posible que deba convertir la cadena en una matriz antes de poder revertirla. Su resultado debe ser una cadena. Recuerda usar Read-Search-Ask si te atascas. Escribe tu propio código.
## Instructions
## Tests
```yml tests: - text: reverseString("hello") debe devolver una cadena. testString: 'assert(typeof reverseString("hello") === "string", "reverseString("hello") should return a string.");' - text: reverseString("hello") debe convertirse en "olleh" . testString: 'assert(reverseString("hello") === "olleh", "reverseString("hello") should become "olleh".");' - text: reverseString("Howdy") debe convertirse en "ydwoH" . testString: 'assert(reverseString("Howdy") === "ydwoH", "reverseString("Howdy") should become "ydwoH".");' - text: reverseString("Greetings from Earth") debe devolver "htraE morf sgniteerG" . testString: 'assert(reverseString("Greetings from Earth") === "htraE morf sgniteerG", "reverseString("Greetings from Earth") should return "htraE morf sgniteerG".");' ```
## Challenge Seed
```js function reverseString(str) { return str; } reverseString("hello"); ```
## Solution
```js // solution required ```