A little lesson on binding
· 2 min read
I've been writing JavaScript for the past 10 years for my work, and there are still things in the language that trips me up. A very good example is on binding.
Given the setup below, I would have been a little hesitant as to what the right answer is.