How do I get rid of unexpected token if? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I get rid of unexpected token if?

I have been trying to code a calculator but the code won't run and instead shows 'unexpected token if' at the bottom of the page.

13th Jun 2016, 12:09 AM
Loic Alou
Loic Alou - avatar
2 Answers
0
Post your code.
13th Jun 2016, 2:31 AM
ZinC
ZinC - avatar
0
you are missing a semicolon. Post your code
24th Jun 2016, 11:08 AM
Gabriel Marazzi
Gabriel Marazzi - avatar