#Error

1 messages · Page 1 of 1 (latest)

digital hatch
grand mortar
#

it only picks one word because you're splitting the string by spaces and you're using args[3]

digital hatch
#

and how am I able to solve that?

#

I mean, if not args[3] then what?

grand mortar
#

you want to get the rest of the items in the array and join them

digital hatch
#

can you please help me how to do that?

burnt pewterBOT
#

<:_:818272565419573308> Array.prototype.slice()
The slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array. The original array will not be modified.

#

<:_:818272565419573308> Array.prototype.join()
The join() method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string. If the array has only one item, then that item will be returned without using the separator.