Let\'s say I have
myArray = [\'item1\', \'item2\']
I tried
for (var item in myArray) {console.log(item)}
It
To print 'item1' , 'item2', this code would work.
var myarray = ['hello', ' hello again']; for (var item in myarray) { console.log(myarray[item]) }