Created
January 22, 2018 09:29
-
-
Save anonymous/1dd075a26a6c72fbffb4a1db2700d5c7 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
function A() { | |
this.counter = 0; | |
} | |
a = new A('Gabby'); | |
A.prototype.toString = function dogToString() { | |
this.counter += 1; | |
return this.counter; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment