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

6.6. while

Just as the if statement is the basic control statement that allows JavaScript to make decisions, the while statement is the basic statement that allows JavaScript to perform repetitive actions. It has the following syntax:

while (expression)
    statement


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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