setItem and getItem for localStorage code not working

Printable View