what does it mean by unexpected token in the code play ground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what does it mean by unexpected token in the code play ground

am working on javascript https://code.sololearn.com/Wi4bzAztc5kF/?ref=app

20th Nov 2018, 1:23 PM
PRAISEGOD EZENNWA CHIHURUMNANYA
2 Answers
+ 2
If-cases are not closed with a semicolon, especially not when you have a else-case following it. So you should remove the semicolon in line 6.
20th Nov 2018, 1:32 PM
Shadow
Shadow - avatar
+ 1
thanksShadow
20th Nov 2018, 1:44 PM
PRAISEGOD EZENNWA CHIHURUMNANYA