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

with

JavaScript1.0+, JScript1.0+, ECMAScript1.0+ NES2+, Nav2+, IE3+, Opera3+ Syntax

with(object){
  code;
}

Description

The with statement takes an object and refers to all of the properties, methods, and events of that object within the code without directly referencing the object itself. This allows you to use these characteristics of an object, such as the Math object, without specifically referencing the object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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