9.2 Commonly misunderstood style rules

Here is a collection of lesser-known or commonly misunderstood facts aboutGoogle Style for JavaScript. (The following are true statements; this is not alist of myths.)

  • Neither a copyright statement nor @author credit is required in a sourcefile. (Neither is explicitly recommended, either.)
  • There is no hard and fast rule governing how to order the members of aclass (??).
  • Empty blocks can usually be represented concisely as {}, as detailed in(??).
  • The prime directive of line-wrapping is: prefer to break at a highersyntactic level (??).
  • Non-ASCII characters are allowed in string literals, comments and JSDoc,and in fact are recommended when they make the code easier to read than theequivalent Unicode escape would (??).