Visit Mozilla.org

Talk:Core JavaScript 1.5 Guide:Loop Statements:for Statement

From MDC

Someone needs to add for (i in array) { ... } to this.

There's no for (i in array) in JS, only for (i in object). That statement is described at Core JavaScript 1.5 Guide:Object Manipulation Statements, but I agree that it's worth mentioning/linking here. --Nickolay 02:36, 7 June 2006 (PDT)