0

Error here

https://sololearn.com/compiler-playground/WUN3nJip1068/?ref=app Why it's not running here, it was running when I tried in the codepen

17th Nov 2024, 3:49 PM
Indrajeet
Indrajeet - avatar
6 ответов
+ 1
Indrajeet it may be due to different sandbox or the The error message "Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')" in line 26 indicates that you're trying to add an event listener to an element that doesn't exist or hasn't been loaded yet.
17th Nov 2024, 5:36 PM
BroFar
BroFar - avatar
+ 1
Indrajeet A sandbox (like CodePen or SoloLearn) is an online environment for testing and sharing front-end code quickly, ideal for experimentation, learning, and prototyping small projects. It’s easy to use, requires no setup, and is great for individual components. Each sandbox has it's own conditions and permissions, rules and self governing regulations usually set by an administrative system... An actual website is a fully deployed, live website hosted on a server, intended for production use. It offers complete control over the back-end, scalability, and full-stack development, but requires more setup, maintenance, and resources. It’s best suited for real-world projects and long-term deployments. You or the hosting company can set the administrative systems per guidelines of the host and server regulations. There may be little to no permissions blocked or using the cpanel block numerous activities.
18th Nov 2024, 5:54 AM
BroFar
BroFar - avatar
+ 1
But then BroFar how can sandbox of sololearn web and app be different.? Because it's working in web version and not in app..?
18th Nov 2024, 5:57 AM
Indrajeet
Indrajeet - avatar
+ 1
Indrajeet it appears as if there is a bug after reviewing 🤔 and comparing visually the code on website and in app.. sololearn.com/compiler-playground/WUN3nJip1068/?ref=app www.sololearn.com/en/compiler-playground/WUN3nJip1068/ Looks like the permissions are different... now reported and escalated ... https://ibb.co/chm6DjJ
18th Nov 2024, 6:25 AM
BroFar
BroFar - avatar
+ 1
ok thank you BroFar 🙏
18th Nov 2024, 6:35 AM
Indrajeet
Indrajeet - avatar
0
BroFar But its working when I am accessing the web, why is that..?
18th Nov 2024, 5:17 AM
Indrajeet
Indrajeet - avatar