how to get local storage array value in javascript code example
Example 1: javascript store array in localstorage
//storing array in localStorage
var colors = ["red","blue","green"];
localStorage.setItem("my_colors", JSON.stringify(colors)); //store colors
var storedColors = JSON.parse(localStorage.getItem("my_colors")); //get them back
Example 2: js get array object from local storage
localStorage.setItem("users", JSON.stringify(users));