How to save data in Sololearn playground using client side JS only? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to save data in Sololearn playground using client side JS only?

The title says it all. Is there any way to store data in Sololearn CP using client side js only? localStorage, sessionStorage, cookies and indexedDB don't work...

15th Sep 2020, 6:38 AM
777
777 - avatar
5 Answers
+ 6
@Vrintle No you can't do here because it is just a terminal to write code. Local storage and cookies works on browser.
15th Sep 2020, 6:48 AM
A͢J
A͢J - avatar
+ 3
SL platform doesn't allows it here. And also Local Storage, Session Storage, Cookies and indexedDB. Happy Coding </>
15th Sep 2020, 6:50 AM
Raj Srivastava
Raj Srivastava - avatar
+ 2
A J #Level 20 Out of interest in SoloLearn CP, I've just made this code which saves data! https://code.sololearn.com/WMr5NCnm2LTU/?ref=app
15th Sep 2020, 3:49 PM
777
777 - avatar
+ 2
@Vrintle Yes if you are using 3rd party api then you can save data in database but you can't work with local storage, session storage or cookies because these are client side and there is no relation with database means you store data locally in your machine not in database. Actually you are not storing data in Sololearn CP.
15th Sep 2020, 3:55 PM
A͢J
A͢J - avatar
+ 2
A J #Level 20 right! But, I was only looking for a workaround, so I got on this. It's very easy to use, anyone can use it in their Web code. Wanna try? https://www.sololearn.com/post/580387/?ref=app
15th Sep 2020, 4:02 PM
777
777 - avatar