Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 5: Conditional Logic and Iteration in JavaScript!

Instruction

Conditional Statements in JavaScript

There is a famous computer science theorem, the "Boehm-Jacopini Structured Programming Theorem," which holds that all programs can be generated using only three programming constructs: A sequence - which is just one statement after another. A branch - such as an if statement. A loop - such as a while or for loop. A sequence is easy to understand, as one statement follows another. The oth...