Skip to content

Instantly share code, notes, and snippets.

@GarrettS
Last active December 26, 2015 10:49
Show Gist options
  • Save GarrettS/7139364 to your computer and use it in GitHub Desktop.
Save GarrettS/7139364 to your computer and use it in GitHub Desktop.

Revisions

  1. GarrettS renamed this gist Oct 24, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. GarrettS revised this gist Oct 24, 2013. No changes.
  3. GarrettS created this gist Oct 24, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var couple = { m : "Garrett", f : "Tomomi" };
    var marriage = function() { console.log(this.f + " is married to " + this.m); };
    var status = marriage.bind(couple);
    status();

    "Tomomi is married to Garrett";