I am looking for a way to separate objects from an array, having only the index avaiable. I have something like this:
     var hello= [];
     for (var i=0; incr.lenght>0; i++;)
     {
        hello+= originalarray[incr[i]].item;
       }
Array: 0: item0 1: item1 2: item2 3: item3
Having this: hello+= originalarray[incr[0,2,3]].item;
I get this: item0item2item3
The "item" comes from another array, this is a small part of my code, but hopefully it's enough to explain my problem. When I create an alert(hello); what I get is a list of item like this: item0item1item2item3. What I am looking for is a way to separate them. But I need to use the localStorage as well, and I was thinking of creating a different key for every value of the index. Hope it makes sense, I am a new user. Thank you very much!
 
    