This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Coder248
almost 10 years

Why won't this work? It says there's a problem with my syntax.

This is my code. if (18%2=1); { console.log(“I failed my first course”); }else{ console.log (“I finished my first course”); }

plz help

Answer 534e0878631fe9855e000661

0 votes

Permalink

dont put semi-colon after the statement. if (18%2===1) look at the parenthesis } else { console.log }

points
Submitted by adrienjr
almost 10 years