setKey
The setKey()
method of the localStorage interface saves a key with it's value in the browser storage
Example
window.localStorage.setKey(key,value)
window.localStorage.setKey("session","93b21393-3dfb-428c-b6c0-2ee3c8018a6f")
Last updated
Was this helpful?