Changes

Jump to: navigation, search

JavaScript Flow Control and Looping

8 bytes added, 14:24, 24 April 2007
The JavaScript ''if ... else'' Statements
''if ... else'' structures can be taken a step further to implement ''if ... else ... if'' structures. For example:
 
<pre>
if (customerName = "Fred")
document.write ("You're not Fred! Where's Fred?");
}
 
</pre>

Navigation menu