What is the Difference Between call, apply, and bind?
Interview One-liner:
callandapplyinvoke the function immediately with a specificthisvalue. The only difference is thatcalltakes arguments one by one, andapplytakes them as an array.
bindreturns a new function withthisbound, which you can call later.
Comments
Post a Comment