Chapter 8 Controlling Flow with Conditions and Loops

What You’ll Learn in This Chapter:

Image The if Statement

Image Using Shorthand Conditional Expressions

Image Testing Multiple Conditions with if and else

Image Using Multiple Conditions with switch

Image Using for Loops

Get Sams Teach Yourself Ajax, JavaScript and PHP All in One 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.