Selection
Javascript selection (or conditional) statements
Selection, or decisions, are made in Javascript using the statement
if(condition) { //is true } else { //is false }
Simple if statements may be written as a single line, but when the true or false portions consist of multiple statements its more likely to be written as

