JavaScript syntax: Difference between revisions

Content deleted Content added
Fix obvious typos in example.
Line 42:
There are two issues: five tokens can either begin a statement or be the extension of a complete statement; and five restricted productions, where line breaks are not allowed in certain positions, potentially yielding incorrect parsing.
 
The five problematic tokens are the open parenthesis "<code>(</code>", open bracket "<code>[</code>", slash "<code>/</code>", plus "<code>+</code>", and minus "<code>-</code>". Of these, the open parenthesis is common in the [[immediately- invoked function expression]] pattern, and open bracket occurs sometimes, while others are quite rare. An example:
 
<syntaxhighlight lang="javascript">