JS contoh fungsi join() array
by istiq20
JavaScript
let buah = [1, 2, 3, "halo", false, true];
console.log(array.join()); // Output: 1,2,3,halo,false,true
console.log(array.join(" ")); // Output: 1 2 3 halo false true
console.log(array.join("#")); // Output: 1#2#3#halo#false#true