I need to split a big string into 5 words and return a sentence from these 5 words. Example:
// The string that needs to be split
'Hello, this is a very big string that goes on for loooooooooong'
// The output i need
'Hello, this is a very
I know I can use split(' ', 5)
to separate the first 5 words, but i don't know how to put them back together into a sentence. Thanks in advance for your help and i you need me to clearer just ask.