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.

10th Dec 2018, 11:15 PM
Thomas Czernek
Thomas Czernek - avatar
1 Respuesta
11th Dec 2018, 12:50 AM
John Wells
John Wells - avatar