Decoding the elusive 'this' in Javascript
When I first started learning javascript and came across the concept of this, I never understood it easily. It's hard for a beginner to grasp it at first because of the vague explanations out there. But it's a very important concept to know and can g...
nehabharati.hashnode.dev3 min read
cedric simon
Web dev
In your second sample, the
growmethod, shouldn't it be declared likegrow:function()? Maybe it's a syntax I am not aware of...