Workaday Reading

Javascript call() & apply() vs bind()?

“I already know that apply and call are similar functions which setthis (context of a function). The difference is with the way we send the arguments (manual vs array) Question: But when should I use the bind() method ? var obj = { x: 81, getX: function() { return this.x; } }; alert(obj.getX.”


read »

Leave a Reply

Your email address will not be published. Required fields are marked *