5 Matching Annotations
  1. Oct 2026
    1. Oprah, knowing it was true, asked if The Road was a love story to his young son John. “In a way, I suppose, that’s kind of embarrassing,” he said. She made slightly better headway on the subject of punctuation. McCarthy didn’t use quotation marks, hated semicolons and kept commas to the barest minimum. “There’s no reason to block the page up with weird little marks,” he said. “If you write properly, you shouldn’t have to punctuate.”
  2. Jun 2021
  3. May 2021
  4. Jun 2017
    1. Trailing commas are used in the book examples on purpose as it gives cleaner diffs for the code examples. You'll learn to enforce this rule in the Linting JavaScript chapter.

      Trailing commas in recent ES6 code has a purpose, and this is it. JS has supported trailing commas in array literals from the outset but with recent versions of the language, it has expanded support for them, in object literals (ECMAScript 5) and function parameters (ES 2017). The main use here, it seems, is cleaner diffs for code. There are caveats and gotchas. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas