Last active
May 16, 2017 19:45
-
-
Save vlucas/7b5afd200ac75c28b6a2b3ecc0800b27 to your computer and use it in GitHub Desktop.
JS Questions
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
// stuff | |
function slug (title) { | |
// do something | |
} | |
slug('Some Post'); | |
class Post { | |
slug () { | |
// do it | |
} | |
} | |
post.slug(); | |
String.prototype.slug = function () { | |
// do it | |
} | |
"some post".slug(); | |
Something.prototype.name = function () { | |
// stuff | |
}; | |
instance.name = function () { | |
// stuff | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment