Ok, I\'ve tried to follow examples here, I know there might be a few different ways of adding objects to an array in localstorage and not overwriting it but I\'m failing to
const object = { name: 'ayyan', age: 29, number: 03070084689, }; const arr = JSON.parse(localstorage.getItem('key_name')) || []; arr.push(object); localstorage.setitem(json.strigify('key_name', arr);