I want to read all values of an array in JS, but I need your help.
my arrray "item" is as follow:
console.log(item);
but when I do :
console.log(item.length)
result is 1. I was expected a 8 as result
following code:
var i;
for (i = 0; i < item.length; ++i) {
console.log( item[i]);
}
is only returning the first item :
I am missing something here but don't know what