0
How can I improve my code below so that it is able to break apart any sized string?
https://code.sololearn.com/Wvy5w4tkH7jX/?ref=app I want to take a string and cut each word out and push it into its own array and then read the array through the console. I’ve done that so far. But my code only works for strings that have words with an equal number of letters. This is troublesome because I want the code to work with any string. If someone has a solution or could give me some tips on how to improve my code in this way, that would be greatly appreciated.
1 Réponse
+ 4
Try this:
https://code.sololearn.com/WpnHU8zigp2h