+ 2

I have a doubt that when we upload JavaScript code in the js editor then why js is not working in sololearn.

27th Jan 2023, 6:09 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
25 Antworten
+ 10
You may find the answer in this post (only accessible by app) https://www.sololearn.com/post/90825/?ref=app
27th Jan 2023, 10:05 AM
Ipang
+ 7
Code is working as you gave alert and also operators working properly. What else you think missing?
27th Jan 2023, 6:41 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 6
CHIRAG RAJ It will work Share your code
27th Jan 2023, 6:32 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 6
Simple steps need to follow to check whether code is working or not 1) Analyse code 2) After execution of code check whether you got expected output or not? 3) If no then again check your code it can be logic, input everything you need to check. 4) If you done all the steps But still if you face issue explain with description.
27th Jan 2023, 6:46 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 5
Hi CHIRAG RAJ ! If you’re all set, that’s fantastic. If you or anyone else are still having issues, please send a video/screencapture of the problem in to info@sololearn.com so we can continue to investigate!
27th Jan 2023, 8:52 AM
Bunny
Bunny - avatar
+ 4
Hussain N Bahlool please don't hijack another thread, that's not fair nor nice. Start your own. I'll help you: Subject: "Java Switch Problem" Tags: Java, switch statement Description: The following code is not working: **Attach code from code playground**
27th Jan 2023, 2:42 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
In all other places my code is working fine but issue is there only in sololearn
27th Jan 2023, 6:48 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 3
Yes Uncaught error let me check again if the issue repeats . May be it's bug
27th Jan 2023, 6:55 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
27th Jan 2023, 7:22 AM
Thakur Samar
Thakur Samar - avatar
+ 3
CHIRAG RAJ I just added a window.onload function which executes your js code as soon as the webpage finishes loading.
27th Jan 2023, 9:31 AM
Thakur Samar
Thakur Samar - avatar
+ 3
Thanks Ipang
27th Jan 2023, 10:07 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
27th Jan 2023, 6:35 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
I also have same issue Please help.
27th Jan 2023, 6:40 AM
Vivek Sitania
Vivek Sitania - avatar
+ 2
It is working because I have added all js code in the script tag under HTML CODE
27th Jan 2023, 6:42 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
But when I write JavaScript code in the js editor, which is provided by sololearn then the js code doesn't work
27th Jan 2023, 6:43 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
Okay
27th Jan 2023, 7:20 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
Thakur Samar Thanku so much for helping me
27th Jan 2023, 8:12 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
Thakur Samar can you explain me how you did this.
27th Jan 2023, 8:22 AM
CHIRAG RAJ
CHIRAG RAJ - avatar
+ 2
Ok, but why it's required here in sololearn. in the other ide it works fine without adding onload function
27th Jan 2023, 9:53 AM
CHIRAG RAJ
CHIRAG RAJ - avatar