Question #110

Author: admin
tags: JavaScript  
const x = 1;

const obj = {
  x: 2,
};

function func() {
  console.log(this.x);
}

const bound = obj.bind(func);

bound();
What will the console output be?
1
2
Nothing. There will be an error.
bind is a method from Function.prototype, not from Object.prototype.
Rate the difficulty of the question:
easyhard