0

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);

result:

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 :

enter image description here

I am missing something here but don't know what

mplungjan
  • 155,085
  • 27
  • 166
  • 222
Waldon
  • 69
  • 1
  • 8

0 Answers0