I have the following code:
var obj2 = new Object();
console.log(Object.isExtensible(obj2)); //returns 'true'
console.log(obj2.constructor.isExtensible()); //returns 'false'
Could anyone explain why the first console print returns boolean 'true' and the second one 'false' and what difference it makes if isExtensible() is called either way.