array.toString vs array.join

Let’s say I have array ["a", "b", "c"], and I want string "a,b,c". The way I read it, both array.toString() and array.join() give this result. Is there any reason to use one over the other? Yes, in other situations .join is more flexible, letting you specify the separator, but… in this case… ?

1 Like