Created
November 15, 2017 01:13
-
-
Save charpeni/d8358573ed3cf496802b20439feaae50 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
class A { | |
handleClick = () => { | |
console.log("A.handleClick"); | |
} | |
handleLongClick() { | |
console.log("A.handleLongClick"); | |
} | |
} | |
console.log(A.prototype); | |
// {constructor: ƒ, handleLongClick: ƒ} | |
new A().handleClick(); | |
// A.handleClick | |
new A().handleLongClick(); | |
// A.handleLongClick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment