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

The with Statement

Turning back to statements for a short time, the with statement makes using objects in JavaScript easier by reducing the amount of code you have to write.

The with statement enables you to create a default object for a statement, thus simplifying the code and reducing the amount you have to type in.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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