Creates a string by concatenating the text content of each element, separated by a separator.
// <li>Apple</li><li>Banana</li>
const str = $('li').join(', ');
"Apple, Banana"
const str2 = $('li').join();
"Apple,Banana"
| Parameter | Type | Description |
|---|---|---|
| separator | string | Optional. Specifies a string to separate each element's text. Default is ",". |
Returns: String.