Created
January 19, 2010 05:51
-
-
Save joshbuddy/280704 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
> String.prototype.markAsAwesome = function() { | |
> this.awesome = true; | |
> return this; | |
> } | |
> var s = "this is my string"; | |
> puts(inspect(s)); | |
< "this is my string" | |
> puts(inspect(s.markAsAwesome())); | |
< "this is my string" | |
> puts(inspect(s.awesome)); | |
< undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment