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 (after if or else if)

  • Putting ; after else

  • Adding a condition after else

  • Missing a condition after if and else if

  • Comparing values of different types

  • Using =, < and > instead of ==, <=, and >=, respectively

  • Adding else without an if


Get hands-on with 1400+ tech skills courses.