Could you just put them in one call or use a loop?
var one = "1" var two = "2" var three = "3" var combinedString = one + ", " + two + ", " + three console.log(combinedString) // "1, 2, 3" console.log(one + ", " + two + ", " + three) // "1, 2, 3" var array = ["1", "2", "3"]; var string = ""; array.forEach(function(element){ string += element; }); console.log(string); //123
source share