When is it dangerous to line break after a close parenthesis in Javascript?
问题 What are the dangers of breaking a line of long code up at a close parenthesis? When could a semicolon be automatically inserted by Javascript (presumably that is the danger, right?). Why is using a ) as a line breaker "frowned upon" by JSLint? In Javascript I sometimes see one long line of code broken up at a ) like this ( example ): function () { or like this ( example ): object.methodOne() .methodTwo(); But when reading the line break expectations for jsLint , it says: As a further defense