0
localStorage undefined
If the locaStorage is undefined, how do I make the text (e.g Time Set = undefined) below the button a blank text? I’ve tried using If (typeof Storage !== ‘undefined’){ ........ } else{ document.get......=“ “; } as seen in the commented section of the code. https://code.sololearn.com/W9YwkjdDJfj6/?ref=app
2 Antworten
+ 1
Qi Qing Lim On sololearn there is "NO" localstorage and sessionstroage.
+ 1
This article may help 👇
https://mathiasbynens.be/notes/localstorage-pattern