I have to store an array in window.localStorage. How would I store the array in window.localStorage using console window?
window.localStorage
EX: cards: Ar
localStorage only support string so you'll have to parse it to JSON
localStorage
string
JSON
var arr = ["hello", "how", "are", "you", "doing"]; localStorage.setItem("test", JSON.stringify(arr));
JSFiddle