with ( ParticularObject ) { |
..Any old statements .. |
} |
// Within these curly braces, ParticularObject is assumed to be default object for any property or method that does not specify a parent object |
with (Math) { // An example |
area = PI *r*r; // PI is in Math object |
x= r * cos(theta); // cos is method in Math Object |
y= r * sin(theta); // sin is a method in Math Object |
} |