localstorage.setitem('key',{name: 'value'});