[JS 문법] call, apply, bind 메소드로 this 명시적 바인딩하기
function a(x, y, z) { console.log(`this =`, this, `\nx = ${x}\ny = ${y}\nz = ${z}`);}a(1, 2, 3);const obj = { a: "hi", b: "hello",};console.log("%ccall", "background-color: aqua;");a.call(obj, 1, 2, 3);console.log("%capply", "background-color: pink;");a.apply(obj, [1, 2, 3]);console.log("%capply", "background-color: orange;");const bindTest = a.bind(obj);bindTest(5, 6, 7);const bindTest2 = a...