+ 4
Printing web storage value.
localStorage.setItem("key1", "value1"); <!-- The value is said to be printed by code below. This, however, does not happen.--> alert(localStorage.getItem("key1"));
1 Respuesta
+ 6
https://code.sololearn.com/Wi2FU59lnODm/?ref=app
Works fine for me on desktop. 🤔
Regarding the error on mobile though, it could be related to this:
https://stackoverflow.com/questions/30061363
Edit: Take a look at Morpheus' note in his code here. SL app does not appear to support file access:
https://code.sololearn.com/WT514EAUL617/?ref=app