print whole array javascript

JavaScript
const arr = [1, 2, 'a', '1a'];
const str = arr.toString();
console.log(str); //> "1,2,a,1a"print whole array on one line without brackets javascriptvar array = [1,2,3]

for(var i = 0; i < array. length ; i++){
  
console. log(array[i])
}

//This is how you print the elements of the array if it is useful!
//-Andrew Mavar arr = ["Apples", "Lemons", "Mangoes"]


console.log(arr)


console.log("https://discord.gg/5yjWgMS")
Source

Also in JavaScript: