Create function stor: function works with next pattern:
const ourStorage = stor();
ourStorage.setValue('name', 'Miki');
ourStorage.setValue('age', 16);
ourStorage.getValue('name'); // Miki
ourStorage.getValue('age'); // 16
ourStorage.setValue('age', 20);
ourStorage.getValue('age'); // 20
ourStorage.getValue('occupation'); // undefined
im a little not understand how it make with using setValue
and getValue
function stor() {
const propsStorage = stor();
...
}