+ 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...
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.
+ 3
SL platform doesn't allows it here.
And also Local Storage, Session Storage, Cookies and indexedDB.
Happy Coding </>
+ 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
+ 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.
+ 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