Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
After seeing this mine was completely overengineered
ohh thanks.
Yes, read RB38's post below.
doesn't split create an array of strings?
You will have a problem if the array doesn't have only numbers. If the Array has boolean values strings, or something else, you will see a beauty 'NaN'
So we can use the map Method to get only numbers
yup, simple and efficient
Does it iterates numbers array twice?
No, you're wrong bro it can't convert string to number I asked Chatgpt and he said no It can't;
In this little assignment you are given a string of space separated numbers
so goodness
How simple it is...
This comment is hidden because it contains spoiler information about the solution
well nevermind i'am blind sometimes 🤣🤣🤣🤣
and what if there are letters in numbers, i know it sounds weird but i mean where in the text its said there will only be numbers?
Sorry, wil do!
Loading more items...