Why does it reject this answer/input: var age = 18 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does it reject this answer/input: var age = 18

Its been a struggle to type anwsers...it keeps wiping them off

10th Oct 2016, 5:08 PM
Koketso
Koketso - avatar
3 Answers
+ 2
Because it needs semicolon ( ; )
14th Oct 2016, 4:28 AM
Martin
Martin - avatar
+ 1
; is missing
29th Oct 2016, 1:06 AM
Shekhar Bahuguna
Shekhar Bahuguna - avatar
0
Check if your path to the .JS file is correct (Eg./Foldername/yourJavaScript.js)
10th Oct 2016, 10:09 PM
Kees Bergen
Kees Bergen - avatar