Skip to content

Instantly share code, notes, and snippets.

@vlucas
Last active May 16, 2017 19:45
Show Gist options
  • Save vlucas/7b5afd200ac75c28b6a2b3ecc0800b27 to your computer and use it in GitHub Desktop.
Save vlucas/7b5afd200ac75c28b6a2b3ecc0800b27 to your computer and use it in GitHub Desktop.
JS Questions
// 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