34,333
edits
Changes
→Looping Statements
As shown in the above example the script following the ''if'' statement is executed when the expression is evaluated to be true (i.e the customerName variable contains the string "Fred") and the script after the ''else'' statement is executed when the customerName does nmot match the string "Fred".
== JavaScript Looping Statements ==