Scrambled letters - javascript | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antwort
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