Already a member? Log in

Sign up with your...

or

Sign Up with your email address

Add Tags

Duplicate Tags

Rename Tags

Add Bookmark

Share It With Others!

Save Link

Sign in

Sign Up with your email address

Sign up

By clicking the button, you agree to the Terms & Conditions.

Forgot Password?

Please enter your username below and press the send button.
A password reset link will be sent to you.

If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.

Links 1 through 7 of 7 by J. Albert Bowden II tagged codingconventions

These are the three rules to Automatic Semi-colon Insertion (ASI):

1. When unable to parse the next token and the previous token was seperated by at least one line terminator
2. When the end of input is reached and the current script cannot be parsed as Ecmascript
3. When a closing curly brace (}) is encountered

There are a few cases where no ASI is applied, even when the rules above would apply:

1. The resulting semi-colon may not cause an empty statement
2. The resulting semi-colon may not become one of the two semi-colons of a for-header
3. When the next line starts with a regular expression

There are also a few hidden cases, which you'll have to discover on your own ;)

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!