HTML Academy
  • HTML Academy
  • Courses
  • Tutorials
  • Courses
  • Tutorials
  • Sign up
  • Log in
  • Home
  • Interactive courses
  • JavaScript programming
  1. Introduction to programming 0/14
  2. Conditions 0/16
  3. Loops 0/26
  4. Arrays 0/28
  5. Functions 0/22
  6. Objects 0/28

Chapter 2: Conditions

15 tasks, 1 challenge, 1 summary

We will learn to use the conditions to the fullest of our ability. We will deal with logical operations and comparisons. We will try to combine operators. And in the end, we will write our second program.

Start
1. Simple fork Task
2. Let’s use an alternative Task
3. Simple comparisons Task
4. Comparisons permitting equality Task
5. Equality, inequality Task
6. Strict string comparison Task
7. Strict number comparison Task
8. Condition-based actions Task
9. If the condition is not fulfilled Task
10. Values ​​as a condition Task
11. Nested conditions Task
12. Logical operators: &&, || Task
13. Logic traps Task
14. Logical negation Task
15. Let’s combine logical operators Task
16. Summary of “Conditions” Summary
17. Second program: “How long to take a walk for?” Challenge

Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

VISAMastercard

Log in

or

Forgot your password?

Sign up

Sign up

or
Log in

Restore access

Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

Forgot to connect your email to the profile? Email us and we’ll help.

We are using cookies to gather information which will help you use our website most effectively. You can read about this here or disable this feature if you want. By continuing to browse the site, you agree to our use of cookies.