please dont rip this site

Microsoft® JScript™
for...in / for...of Statements
 Language Reference 
Version 1 

See Also


Description
Executes a statement for each element of an object or array.
Syntax
for (variable in [object | array])
    statement

for (variable of array)
    statement

The for statement syntax has these parts:

Part Description
variable In the for...in statement, a variable that can hold any of the elements of object or the name of an index in the array. The variable is a string, which is set to match each of the keys in the object.

In the for..of statement, variable is a number, which indexes the array. Note that it may not iterate the array in order.

object, array An object or array over which to iterate.
statement The statement to be executed for each member of object. Can be a compound statement.
Remarks
Before each iteration of a loop, variable is assigned the next element of object. You can then use it in any of the statements inside the loop exactly as if you were using the element of object.

When iterating over an object, there is no way to determine or control the order in which the members of the object are assigned to variable.

See the continue Statement.


© 1997 by Microsoft Corporation. All rights reserved.

Comments:


file: /Techref/inet/iis/jscript/htm/js754.htm, 3KB, , updated: 2020/2/6 21:14, local time: 2024/11/21 05:12,
TOP NEW HELP FIND: 
3.147.68.39: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/inet/iis/jscript/htm/js754.htm"> for...in Statement</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .