In this JavaScript code , why the two functions when compared directly returns True while when compared using new object creation returns False?
function A() {
return this;
}
function B() {
return this;
}
console.log(A() === B());
console.log(new A() == new B());