Common Mistakes To Avoid
Understand the common mistakes and errors in order to avoid them.
We'll cover the following
❌ Common pitfalls
The following common mistakes should be avoided:
-
Using any of these:
If
,IF
,Else
ELSE
-
Putting
;
at the end of a condition (afterif
orelse if
) -
Putting
;
afterelse
-
Adding a condition after
else
-
Missing a condition after
if
andelse if
-
Comparing values of different types
-
Using
=
,<
and>
instead of==
,<=
, and>=
, respectively -
Adding
else
without anif
Get hands-on with 1400+ tech skills courses.