JavaScript Programmer’s Reference enum (Reserved word) Reserved for

JavaScript Programmer’s Reference enum (Reserved word) Reserved for future language enhancements. The provision of this keyword suggests that future versions of ECMAScript may support enumerated data types. See also: Reserved word, Type Cross-references: ECMA 262 edition 2 section 7.4.3 ECMA 262 edition 3 section 7.5.3 Enumeration constant (Definition) Possible future functionality to provide enumerated data types. Refer to: enum Enumerator object (Object/JScript) A special object supported by MSIE for processing collections of objects. JScript 3.0 IE myEnumerator = Enumerator aCollection The collection to be enumerated Object properties: constructor Object methods: atEnd(), item(), moveFirst(), moveNext() Availability: Internet Explorer 4.0 JavaScript syntax: IE myEnumerator = new Enumerator(aCollection) Argument list: An Enumeratorobject provides a way to enumerate through all the objects in a collection (aka Array). You can create a new Enumerator, giving it your collection as an argument and can then access the items in the collection in a more sophisticated way than simply using a for loop. You can use the enumerator to cycle through the items in a collection in much the same way as a for( … in … )loop would enumerate the properties. However, in some collections, objects have more than one entry. They may have an indexed entry and an associative entry. An enumerator should traverse the collection visiting each item only once. A for loop may visit objects several times.
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services

Leave a Reply