join()
Joins array elements into a single text.
Syntax
arr.join(separator)
Description
Combines elements by placing a separator between them (opposite of split).
Returns
Text (string).
Example
Loading editor…
Expected output
2024-10-02
When to use?
Converting an array into a single-line text (date, path, sentence).