Lesson 23

Controlling Flow with Conditions and Loops

What You’ll Learn in This Lesson:

  • Image How to test conditions with the if statement

  • Image How to use comparison operators to compare values

  • Image How to use logical operators to combine conditions

  • Image How to use alternative conditions with else

  • How to create expressions with conditional operators

  • How to test ...

Get Sams Teach Yourself HTML, CSS, and JavaScript All in One, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.