#you must first stringify it with the JSON.stringify() function localStorage.setItem('items', JSON.stringify(items)); const x = JSON.parse(localStorage.getItem('items'))