Microsoft® JScript , Operator |
| Language Reference | |
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:
for (i = 0; i < 10; i++, j++) { k = i + j; }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, thus getting around the restriction.
file: /Techref/language/asp/js/151.htm, 2KB, , updated: 1996/11/22 10:11, local time: 2024/12/17 22:58,
18.119.121.115: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://techref.massmind.org/techref/language/asp/js/151.htm"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.