Is the setItem(key,value) function asynchronous?
setItem(key,value)
localStorage.setItem("key",someText);
Nope, all localStorage calls are synchronous.
localStorage
2.1m questions
2.1m answers
60 comments
57.0k users