I am not sure I am writing valid javascript argument or not.
function localData(){
this.setInfo(key, value) =
function(){
localStorage.setItem(key, value);
};
}
how can I post key, value params in setInfo(key, value) to function(){}?
is there any way to achieve that?
Id’s say correct is: