Skip to content

Question about "Passing arguments and this to listeners" section #5035

Answered by mscdex
iggeehu asked this question in Q&A
Discussion options

You must be logged in to vote

console.log() shows the class name where available to let you know the type of object you're logging. In this case, myEmitter is an instance of MyEmitter, so it shows that class name. The properties shown in the output are those that belong to that specific instance (this) and not the class/constructor.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aduh95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants