Imagine you want to display your active Codémon team on the game screen as a clean text banner, like "Aquachu - Pyrochu - Zap", instead of a raw JavaScript array.
The .join() method combines all the elements of an array into a single string, placing the separator of your choice between each item:
↗️
Loading editor...
↶
↷
Notice that the separator is only placed between elements, never at the very beginning or the very end. With 3 Codémon in the array, the separator appears 2 times.