Articles → JavaScript → Array Join Function In Javascript
Array Join Function In Javascript
Purpose
Syntax
<string_variable>.join(“seperator”);
Example
<script>
var str = ["Add", "pipe", "between", "string"];
alert(str.join("|"));
</script>
Try It
Output
Posted By - | Karan Gupta |
|
Posted On - | Friday, May 22, 2020 |