Reference join()

join()

Combines an array of strings into one string.

The first parameter, list, is the array of strings to join.

The second parameter, separator, is the character(s) that should be used to separate the combined strings. For example, calling join(myWords, ' : ') would return a string of words each separated by a colon and spaces.

Examples

Syntax

join(list, separator)

Parameters

list
Array:

array of strings to combine.

separator
String:

character(s) to place between strings when they're combined.

Returns

String: combined string.
This page is generated from the comments in src/utilities/string_functions.js . Please feel free to edit it and submit a pull request!

Related References