In one screen of my web app, a user has entered a numerical value which is stored in the localstorage. In the next screen the user can click a button where the localstorage value will be incremented by a value once; lets say add 5. So if the localstorage of the variable X is 5 on button click it will be updated to 10.
How do I go about this? I have the value stored but I don't know how to manipulate the value on button click.
codepen with my current localstorage implemented using a range slider as input.
https://codepen.io/anon/pen/WMqrqe
var updateValuesMinutes = function(){
$to.prop("value", to);
localStorage.setItem( 'StoreMinutes', to);
let localMinutes = localStorage.getItem("StoreMinutes");
console.log(localMinutes);
};