I am beginner in JavaScript and I'm trying to log an array, but in the console, it shows me something different. here is the code:
var cars = ["Ferrari", "Lamborghini", "Porsche"];
console.log(cars);
and here is what is see in the console:
Array(3)
0: "Ferrari"
1: "Lamborghini"
2: "Porsche"
length: 3
Why isnt it printing the whole array but printing these things? help please. thanks
[[Prototype]]: Array(0)