The str.split() function is used to split the given string into array of strings by separating it into substrings using a specified separator provided in the argument.
The Array.join() function is used to join the elements of the array together into a string. This method adds the elements of an array into a string and returns the newly created string. The elements separates by a specific separator. Default separator used is comma (, ).