var a = []
var b = [1,2,3]
b.push('4') // b = [1,2,3,4]
a = b.join('-') // a = '1-2-3-4'
b = a.split('-') // b = [1,2,3,4]
var a = []
var b = [1,2,3]
b.push('4') // b = [1,2,3,4]
a = b.join('-') // a = '1-2-3-4'
b = a.split('-') // b = [1,2,3,4]