vic mortelmans
When a function is called as a method on an object (obj.alertVal()), "this" is bound to the object that it is called on (obj). And when a function is called without an object (func()), "this" is bound to the JavaScript global object (window in web browser
javascript
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.