+ 2

question about the mobile application

Hello, I have a question about the mobile application. the code I entered in the web version works normally, but does not work in the mobile version; Tell me what the problem is. Thanks in advance.

8th Feb 2021, 12:58 PM
Hasmik Gevorgyan
Hasmik Gevorgyan - avatar
7 Answers
+ 7
Please show your code so that we may help you. sometimes it may happen bcz of some bugs in server. please try it once again later
8th Feb 2021, 12:59 PM
Aysha
+ 5
https://www.sololearn.com/Discuss/2678815/?ref=app Hasmik Gevorgyan welcome! read this thread again. He mentioned a similar issue in the description :)
8th Feb 2021, 1:52 PM
Simba
Simba - avatar
+ 5
the (new) web code playground doesn't handle js tab as android app' (not know how exactly apple app' would handle it). in the android app', the js tab is included inside the html tab at <head> end, while in web, the js tab is included in the html tab at <body> end... in the first case, when the js code run for the first time, the DOM is not fully loaded (<body> isn't yet accessible), so you cannot access DOM (or you'll get undefined). you need to wrap the js tab code in an onload event handler function: https://code.sololearn.com/WGOX0oSNGCva/?ref=app
8th Feb 2021, 2:22 PM
visph
visph - avatar
8th Feb 2021, 1:05 PM
Hasmik Gevorgyan
Hasmik Gevorgyan - avatar
+ 2
Simba thanks. But in web version dose not error. Code is run normally.
8th Feb 2021, 3:06 PM
Hasmik Gevorgyan
Hasmik Gevorgyan - avatar
+ 2
Simba thanks so much!!
8th Feb 2021, 4:09 PM
Hasmik Gevorgyan
Hasmik Gevorgyan - avatar
+ 1
visph thanks so much !!!!😊😊 Worked !!!
8th Feb 2021, 3:17 PM
Hasmik Gevorgyan
Hasmik Gevorgyan - avatar