split and join method in javascript code example
Example 1: split and join in node js
var str = "How are you doing today?";
var res = str.split(" ");
var join = res.join(",");
Example 2: join in array
var a = ['Wind', 'Water', 'Fire'];
a.join(); // 'Wind,Water,Fire'
a.join(', '); // 'Wind, Water, Fire'
a.join(' + '); // 'Wind + Water + Fire'
a.join(''); // 'WindWaterFire'
Example 3: javascript implode function
Javascript implode explode functions