JavaScript syntax: Difference between revisions

Content deleted Content added
Nelsonkam (talk | contribs)
Functions: Improved formatting for better rendering on mobile version.
Tags: Mobile edit Mobile web edit
Nelsonkam (talk | contribs)
With: Improved formatting for better rendering on mobile version.
Tags: Mobile edit Mobile web edit
Line 1,109:
};
</syntaxhighlight>
* Note the absence of <tt>{{mono|document.</tt>}} before each <tt>{{mono|getElementById()</tt>}} invocation.
 
The semantics are similar to the with statement of [[Pascal (programming language)|Pascal]].
 
Because the availability of with statements hinders program performance and is believed to reduce code clarity (since any given variable could actually be a property from an enclosing <tt>{{mono|with</tt>}}), this statement is not allowed in ''strict mode''.
 
===Labels===