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

The for Loop

The most common loop is the for loop, which enables you to execute a series of statements a specific number of times. Here’s the syntax of this loop:

for ([initial-expression]; [condition]; [increment-expression]) { 
    statements 
} 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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