BIND
-
Bind, Call and ApplyDynamicPL/Javascript 2019. 10. 24. 02:18
1. Overview Functions are a special kind of object and also get a couple of special methods that they inherit from the function constructor object such as call, apply and bind methods. These methods allow us to call a function and set this variable manually. 2. Description var john = { name: 'John', age: 26, job: 'teacher', presentation: function(style, timeOfDay) { if (style === 'formal') { con..