저장
let arr = [1,2,3,4,5]
localStorage.setItem("data", JSON.stringify(arr));
출력
let output = localStorage.getItem("data");
let arr = JSON.parse(output);
console.log(arr) // [1,2,3,4,5]