I am Hack Sparrow
Captain of the Internets.

JavaScript .bind() vs .apply() and .call()

So, what's the point of .bind() when we already have .apply() and .call()? For those not familiar with .bind(), .apply(), and .call(), here is a quick summary with this object [code] var fruit = { name: 'Apple' } [/code] and this function [code] function showDetails(size, price) { console.log(this.name + ' ' + size + ': $' + price + '/kg') } [/code] on mind. All three of them are function meth ...