O'Reilly logo

JavaScript for Sound Artists by Steve Leonard, William Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4  Conditional Statements and Loops

Conditional statements and loops are two of the most widely used constructs in programming. Conditional statements allow your program to make choices based on a set of criteria. Loops use repetition, allowing your program to complete many tasks quickly.

Images  Conditional Statements

To create programs that do more than basic calculations or print text, they must be able to make decisions. You can program these decisions by using conditional statements. Conditional statements check if a value is true or false and then execute a branch of code based on this condition. We are going to go over the following three conditional ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required