Why i can't use the localStorage here in sololearn | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why i can't use the localStorage here in sololearn

localStorage.setItem("name","BMO"); console.log(localStorage.name);

15th Jul 2021, 5:45 AM
BMO
BMO - avatar
2 Antworten
+ 3
because the app authors has decided to not authorize it in the html webview component ^^ however, it work if you run your code inside the web version of sololearn code playground ;)
15th Jul 2021, 5:54 AM
visph
visph - avatar
+ 1
Because sololearn is not your typical web browser.
15th Jul 2021, 10:01 AM
anon