In my quest to determine the length of each word in a lengthy text, I am seeking assistance. I aim to return an array containing the length of every word at the conclusion of this function.
My current approach involves utilizing two loops - one to separate the text into individual words, and another to calculate the length of each word. However, I have been unable to make this strategy work effectively.
If you possess any innovative solutions to offer, I would greatly appreciate your help with resolving these challenges! Also, it is worth noting that I am relatively new to JavaScript, so I kindly ask for your patience as I navigate through this learning process.