convert array to striong js code example
Example 1: javascript print array
var arr = [1,2,4,5]
console.log(...arr) //Spreading operator in JS
Example 2: array to string javascript
<array>.join(<splitting character(s)>);
var arr = [1,2,4,5]
console.log(...arr) //Spreading operator in JS
<array>.join(<splitting character(s)>);