New, Apply, Call, Bind in JavaScript
In JavaScript, apply
, call
, bind
are crucial concepts for development, which all relate closely with this
pointer.
I’m gonna start with a few questions:
- What does
new
actually do? - Difference among
apply
,call
andbind
? - How to implement an
apply
orcall
?
Well, let’s get started!