Hi, I just finished Level 3 on states and binding a function to be executed to event handlers within HTML. I was wondering what the _someFunction.bind(this) meant? [image] Is this the Function.prototype.bind() method? What exactly is going on when its called on the onClick event on an HTML node? In layman terms please

I'm thinking about the name _getCharacterCount(). This function actually is updating state of our component, a better name could be '_updateCharacterCount()'. What do you think? Or am I thinking in a wrong way?

Thanks all you!!

moderator: Too late for a reply, but yeah, I agree, or _setCharacterCount . Not worth a change imo, but you're quite right, that'd be better!

I encountered the same "undefined" error message as well (with the success window popup). But after clicking "continue" button to next challenge, and then using browser back button to come back to this challenge, and then paste those codes back to the editor, the error message disappeared and everything became normal. Hope this information could be helpful for debugging.

By the way, at 3:16 in the video, I think the subtitle is supposed to be "who calls this function" instead of "who cause this function"? And also at 3:21 I think the subtitle is supposed to be "React calls this function" instead of "React caused dysfunction" ... did I get it wrong?

Hi @michaelmuita. It looks like you're telling React to call _getCharacterCount immediately by placing parentheses at the end of it, and calling bind on the return value. What you want to do is reference the _getCharacterCount method itself, then call bind on it.