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/inet/iis/jscript/htm/js637.htm, 2KB, , updated: 1997/9/30 03:44, local time: 2024/11/7 08:49,
3.94.202.151:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://www.massmind.org/techref/inet/iis/jscript/htm/js637.htm"> , Operator</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to www.massmind.org! |
.