Created
November 28, 2014 10:42
-
-
Save gsans/d19e75fea6080b15f81b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Using a new object | |
var Order = function(id) { | |
//we ignored (this) but avoided using an extra variable (that) | |
return { | |
id: id | |
}; | |
}; | |
… | |
var order = new Order(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment