Created
October 4, 2013 13:29
-
-
Save krutz27/6825923 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
var truck = function() { | |
this.turnLeft = function { | |
// turn left | |
return this; | |
} | |
this.turnRight = function { | |
// turn right | |
return this; | |
} | |
this.goReallyFast = function { | |
// go fast! | |
return this; | |
} | |
}; | |
// My get-away plan | |
var myTruck = new truck(); | |
myTruck.turnLeft().turnRight().goReallyFast(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment