
array.join() – Joins all elements of an array into a string separated by the specified separator.
๐ Syntax
str = array.join(separator = ',');
๐งช Example
['a','b','c'].join('-'); // 'a-b-c'

array.join() – Joins all elements of an array into a string separated by the specified separator.
str = array.join(separator = ',');
['a','b','c'].join('-'); // 'a-b-c'
Comments
Post a Comment