how to print an array in javascript

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var x = fruits.toString();var arr = ["Apples", "Lemons", "Mangoes"]


console.log(arr)


console.log("https://discord.gg/5yjWgMS")var array = [1,2,3]

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

Also in JavaScript: