Articles → JavaScript → Array Join Function In Javascript
Array Join Function In Javascript
Purpose
Syntax
<string_variable>.join(“seperator”);
Example
<html><head><title>Array.Join demo</title></head><script>
var str = ["Add", "pipe", "between", "string"];
alert(str.join("|"));
</script><body></body></html>
Output