Microsoft® JScript , Operator |
Language Reference Version 1 |
Causes two expressions to be executed sequentially.
expression1, expression2The , operator syntax has these parts:
Part Description expression1 Any expression. expression2 Any expression.
The , operator causes the expressions on either side of it to be executed in left-to-right order, and obtain the value of the expression on the right. The most common use for the , operator is in the increment expression of a for loop. For example:The for statement only allows a single expression to be executed at the end of every pass through a loop. The , operator is used to allow multiple expressions to be treated as a single expression, thereby getting around the restriction.for (i = 0; i < 10; i++, j++) { k = i + j; }
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/jscript/js637.htm, 2KB, , updated: 1997/9/30 02:44, local time: 2024/12/3 06:42,
3.145.8.2:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/language/jscript/js637.htm"> , Operator</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.