Javascript coding style recommendation: in return and throw statements use only simple variables - DevCommunity.info


Javascript coding style recommendation: in return and throw statements use only simple variables

Posted by Michael Freidgeim on January 14, 2012

My collegue told me that placing the opening curly brace at the end of the line is safer than at the beginning of the new line, because it prevents some hard-to-debug errors, related to Automatic Semicolon Insertion and pointed me to the article Basic JavaScript Part 6: Automatic Semicolon
... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.