Interactive online courses HTML Academy
2026-03-09 10:58 Diff

Now that you have learned how to use negations, we can describe a new logic of the program that will work without errors.

We need to combine two separate checks into one single check. The project can be started if:

  • there are enough developers
  • and they have the knowledge of the technologies
  • and no developers are on vacation
  • and no developers are out sick.

Implementing this logic in the code is quite easy, because negations can be combined with other logical operators. Example:

var conditionOne = true; var conditionTwo = true; var conditionThree = false; if (conditionOne && conditionTwo && !conditionThree) { // code will be executed }

It’s time to complete the third program of this work day!