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

6.10. Labels

The case and default: labels used in conjunction with the switch statement are a special case of a more general label statement. In JavaScript 1.2, any statement may be labeled by preceding it with an identifier name and a colon:

identifier: statement


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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