how to take arr input in javascript convert code example Example: convert array to number let x = [1,2,3,4,5] let num = +x.join("")