a = '12345'//это a = '1,2,3,4,5'//в это
alert('12345'.split(''))
console.log( "123".replace(/(.)/g, "$1,"), "123".split("").join() ) //>>>> 1,2,3, 1,2,3