Skip to content

Instantly share code, notes, and snippets.

@davidlygagnon
Last active April 19, 2019 23:43
Show Gist options
  • Save davidlygagnon/0e68b1981b06ecab30b769bef93cdd73 to your computer and use it in GitHub Desktop.
Save davidlygagnon/0e68b1981b06ecab30b769bef93cdd73 to your computer and use it in GitHub Desktop.

Revisions

  1. davidlygagnon revised this gist Apr 19, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    // Coffeescript
    // (1) Coffeescript
    class Car
    constructor: (@model) ->

    // JavaScript (ES6)
    // (2) JavaScript (ES6)
    class Car {
    constructor(model) => {
    this.model = model
  2. davidlygagnon revised this gist Apr 19, 2019. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,10 @@
    // Coffeescript
    class Car
    constructor: (@model) ->
    constructor: (@model) ->

    // JavaScript (ES6)
    class Car {
    constructor(model) => {
    this.model = model
    }
    }
  3. davidlygagnon created this gist Apr 19, 2019.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    class Car
    constructor: (@model) ->