Why i can't use the localStorage here in sololearn | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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