Skip to content

Why does property destructuring work here? #2630

Answered by urugator
kubk asked this question in Q&A
Discussion options

You must be logged in to vote

Try to console.log(this) inside the increment and you will see whats wrong
(the other one works, because it's using arrow function)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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