Arrow functions using call, apply, bind - not working? [duplicate]
问题 This question already has answers here : When should I use Arrow functions in ECMAScript 6? (9 answers) Can you bind 'this' in an arrow function? (8 answers) Are 'Arrow Functions' and 'Functions' equivalent / exchangeable? (1 answer) Closed 2 years ago . I'm being a bit puzzled when I try to convert a simple ES5 code to ES6. Let's say I have this block of code: var obj = {num: 2} var addToThis = function (a, b, c) { return this.num + a + b + c } // call console.log(addToThis.call(obj, 1, 2, 3