1 | with ( ParticularObject ) { |
2 | // any old statements É |
3 | } |
4 | Within the curly braces, ParticularObject is the default object for any property or method that does not specify a parent object |
5 | with (Math) { // An example |
6 | area = PI*r*r; // Math property PI |
7 | x = r*cos(theta); // Math method cos |
8 | y = r*sin(theta); // Math method sin |
9 | } |