+ 1

Can anyone tell me what is the mistake in this code??

snake game which is made up of html ,css and javascript but i m facing an output issue .can someone point out the mistake?? https://code.sololearn.com/WxcjPy3F16ZK/?ref=app

23rd Apr 2018, 8:44 AM
Faisal Farooq
Faisal Farooq - avatar
2 Respostas
+ 2
If you are the writer of such huge code you should know how to debug it. well I will assume that you are the one that wrote the code, and this is the error here.. ------------------------------------------------------- JavaScript Console SyntaxError: missing } after property list Line: 197 ------------------------------------------------------- So check from your above code where one of your closing braces is missing
23rd Apr 2018, 2:05 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 1
thankyou sir and i juxt copy and paste this invalid code and correct most of it .I am a beginner and leaning it but according to the solo learn compiler the mistake is in js line no. 47 and i am unable to point out that.
24th Apr 2018, 1:37 PM
Faisal Farooq
Faisal Farooq - avatar