Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide won't
Message
General information
Forum:
Javascript
Category:
JQueryUI
Title:
Miscellaneous
Thread ID:
01596038
Message ID:
01596099
Views:
42
>That is ridiculous about JSint. A code block's opening { being placed at the end of a line is a very common formatting style.
>

The semicolons in JS are optional. The interpreter will "fill them in" where ever it thinks they belong. That means it's possible to run into subtle (read, really hard to find) bugs, which is why it's considered a best practice (and not just style issue) to NOT put curly braces on a new line. It keeps the interpreter from adding a semicolon where it might not belong.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform