score:2

Accepted answer

it looks like the key value container is hidden in your console, try this.

enter image description here

enter image description here

score:-1

save the thedata variable not 'thedata' as string value.

localstorage.setitem('thekey', thedata);

score:1

open up the web console and run the command, localstorage.getitem('thekey')

if you still don't see it, try setting the key with window.localstorage.setitem('thekey', 'thedata')


Related Query

More Query from same tag