0

Is there a trick in using the js playground in sololearn code editor?

Every time I use the JavaScript editor, I am unable to set the id of an HTML tag like ul with getElementById or through querySelector as the console throws an error and tells me that it cannot read property of null.

31st Jan 2023, 9:49 AM
Shariif Mahamed
Shariif Mahamed - avatar
2 Answers
+ 5
A common issue related to difference in how scripts is loaded between the app and the web https://www.sololearn.com/post/90825/?ref=app
31st Jan 2023, 10:07 AM
Ipang
+ 1
Thanks, I'll try that
31st Jan 2023, 11:45 AM
Shariif Mahamed
Shariif Mahamed - avatar