+ 1

Link not working...?

In the following code I have a link to my snake game, which runs just fine by itself. Going through the link however, when the game is run, it throws ‘syntax error’ without any further info. Does anyone see the issue? Here’s the code with the link: https://code.sololearn.com/W7K4pDKPIhrF/?ref=app This is the snake game: https://code.sololearn.com/W1mgu6mLP2E5/?ref=app

23rd Jan 2020, 9:20 PM
Oceanlight
Oceanlight - avatar
14 Answers
+ 4
Oceanlight yes, I played up to score 15 without any problems. How does the error occur in the code ? How can I reproduce the error ?
24th Jan 2020, 5:06 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 4
Oceanlight I ran it on the app 😂😂 yet had no problems!
24th Jan 2020, 6:47 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Weird, it doesn't show any syntax error on my side. Have you fixed the code ?
23rd Jan 2020, 10:01 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Oceanlight weird, I tried it more than 5 times and wasn't able to produce an error
24th Jan 2020, 6:21 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
I dont think the error is from the code. I think Sololearn just doesn’t work well when it comes to linking a code. Not exactly why; but most of the time it throws a syntax error when I try to link to a different code too.
23rd Jan 2020, 9:29 PM
Ginfio
Ginfio - avatar
+ 1
Ginfio thanks, I suspected that Maybe there’s still a way make it work though... I’ll let you know if I find it😬🙃
23rd Jan 2020, 9:44 PM
Oceanlight
Oceanlight - avatar
+ 1
I don't see any error in the code cus is working in my app.
24th Jan 2020, 11:21 AM
ugochukwu Joseph
ugochukwu Joseph - avatar
24th Jan 2020, 1:46 PM
Simply Studios
Simply Studios - avatar
0
Aymane Boukrouh [INACTIVE] nope...đŸ€š It’s still throwing errors over here Is the snake game running just fine for you?
23rd Jan 2020, 10:08 PM
Oceanlight
Oceanlight - avatar
0
Aymane Boukrouh [INACTIVE] I really don’t know how it occurs... I click the link; it opens a split screen (as if opened in the browser instead of the app) with the code on the left and the output on the right (which is blank); and the console pops up with ‘syntax error’ I also can’t hide the console to rerun the game (the console is blocking the run button) This might just be an error with sololearn😕
24th Jan 2020, 6:20 AM
Oceanlight
Oceanlight - avatar
0
Aymane Boukrouh [INACTIVE] Ginfio so I just ran it in my browser (instead of the app) and it worked just fine... It only seems to malfunction in the app
24th Jan 2020, 6:39 AM
Oceanlight
Oceanlight - avatar
0
Simply Studios your game works AND is shows ‘syntax error’; mine dosen’t work at all 🧐 I’m trying to use my own snake game though...
24th Jan 2020, 7:17 PM
Oceanlight
Oceanlight - avatar
0
Perhaps this is a bug with a specific version of sololearn
24th Jan 2020, 7:29 PM
Oceanlight
Oceanlight - avatar
0
Oceanlight look at the js source code
26th Jan 2020, 8:04 AM
Simply Studios
Simply Studios - avatar