diff --git a/wordpress-coding-standards/javascript.md b/wordpress-coding-standards/javascript.md index 02e9e2a..b5f958d 100644 --- a/wordpress-coding-standards/javascript.md +++ b/wordpress-coding-standards/javascript.md @@ -51,9 +51,9 @@ Whitespace can easily accumulate at the end of a line – avoid this, as trailin ### Object Declarations -Object declarations can be made on a single line if they are short (remember the line length guidelines). When an object declaration is too long to fit on one line, there must be one property per line. Property names only need to be quoted if they are reserved words or contain special characters: +Object declarations can be made on a single line if they are short (remember the line length guidelines). When an object declaration is too long to fit on one line, there must be one property per line, and each line must be ended by a comma. Property names only need to be quoted if they are reserved words or contain special characters: -Objects and arrays can be declared on a single line if they are short (remember the line length guidelines). When an object or array is too long to fit on one line, each member must be placed on its own line and each line ended by a comma. +Arrays can be declared on a single line if they are short (remember the line length guidelines). When an array is too long to fit on one line, each member must be placed on its own line and each line ended by a comma. ```javascript // Preferred