<html>
<SCRIPT LANGUAGE="JavaScript">
<!--
x = 1;
y = 2;
z = 3;
document.write("<U>After single assignment</U><BR>");
document.write("x=",x,"<BR>y=",y,"<BR>z=",z,"<BR>");
document.write("<U>After multiple assignment</U><BR>");
document.write("x=",x,"<BR>y=",y,"<BR>z=",z,"<BR>");
x = (y = 17) + (2 * (z = 2));
document.write("<U>After multiple assignment in one expression</U><BR>");
document.write("x=",x,"<BR>y=",y,"<BR>z=",z,"<BR>");
// -->
</SCRIPT>
</html>
|