I am new at JS and before asking I searched about this question but still did not find an answer. In the LocalStorage I have only one key defined as follows:
key={
-prob1: string
-prob2: Object
-prob21:string
-prob22:string
}
How can I store in key a given object of the same structure as prob2 let's call it obj , is it like this ? localStorage.setItem('key.prob2', obj); is this legal?
any ideas?thank you