"is used to make decisions in JavaScript"
"if (condition){ statements"
"The condition in the parenthesis ( ) is evaluated to determine if
true, and if so then the statements inside the curly braces { }
are executed"
"An optional else statement can be included with if statement"
"if (condition){ statements } else{ statements"
"the statements inside of curly brackets { } after the else
keyword are executed if the condition of if statement is false"
"nest if statements"
"A better way"
"&&"
"The and operator"
"to combine two conditions"
"both must be true to satisfy the if condition"
"he or operator"
"combines two conditions"
"such that the if statement is satisfied if either condition is
true"
"Not"
"Operator"
"makes a condition that returns true, false and vice versa"
- Learn Java Script: if Statement
http://r6.sharedcopy.com/6o5ionu8