• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

for…in

JavaScript 1.0+, ECMAScript 1.0+, JScript 1.0+ Nav2+, NES2+, IE 3+, Opera3+ Syntax

for(variable in object){

  code;

}

Description

The for…in object iterates a specified variable over all the properties of an object. The statements, contained in the body, are executed once for each property. The variable is a variable interated over each property in the object. code contains JavaScript statements to be executed.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint