+ 1

Why is the code JavaScript different on each site I've used?

I started learning JavaScript on another site before I switched to SoloLearn an the code is so much different on here. On code playground I typed in and ran a few lines of code I knew and it said that it wasn't a code I could use. Does anyone know why? Code was draw=function {()}; (this Is an animation code) With a few ellipse codes inside. I think I got the right code, it said JS at the bottom of the screen. Thanks for your help.😊I just started coding again a little while ago, I have had a lot to do around home.

31st Aug 2019, 12:24 PM
Pizza🍕
Pizza🍕 - avatar
3 Answers
+ 1
Interesting case Catlover, Mind to share your code in question? add the code link in the Description section : )
31st Aug 2019, 12:35 PM
Ipang
+ 1
did you select the correct (code) llanguage option in the dropdown list?
31st Aug 2019, 12:53 PM
rodwynnejones
rodwynnejones - avatar
0
Catlover Actually, I have no idea what that line `draw= function {()};` was about. But I'm glad you said you had the right code, good for you 👍 Hope there'll be no more confusion ahead so you can enjoy your return to coding. No thank in order, I haven't done anything to help at all 😁
31st Aug 2019, 1:59 PM
Ipang