Problem: I would like get the localstorage value "car", i want to get the result like car = ["red","blue"] in other page, i want to get the result into array one by one. How can i fix it?
page 1:
car = ["red","blue"];
localStorage.setItem("car", JSON.stringify(car));
 Another Page:
  var car1 = JSON.parse(localStorage.getItem("car"));  
  alert(car1[0])  
   ****show two record at the same time , i want to put it into array like car1[0] = red; car1[1] = blue;
 
     
    