Scrambled letters - javascript | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Scrambled letters - javascript

How can I shuffle the letters of a string without using vector commands as the array?

23rd Sep 2019, 11:23 PM
Giocrivellaro
1 Réponse
0
"YourText".replace(/([^aeiou])([aeiou])/g, '$2$1'); // I positioned the consonants forward and the rest backwards, thus two simple groups.
30th Sep 2019, 12:21 PM
Jônatas Araripe
Jônatas Araripe - avatar