Open main menu
Changes
JavaScript Flow Control and Looping
12 bytes added
,
13:55, 24 April 2007
→
The JavaScript ''if ... else'' Statements
if (customerName = "Fred")
{
document.write ("Hello Fred!");
}
else
{
document.write ("You're not Fred! Where's Fred?");
}
</pre>
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits