Upon inspecting the _proto__ property of an object I created, it is evident that it has been inherited from Object.
https://i.stack.imgur.com/hcEhs.png
Further exploration reveals that when a new object is created and inherits the obj object, the inheritance structure appears as depicted in this image https://i.stack.imgur.com/HoSX4.png
It can be observed that the object obj1 is inheriting from obj and obj itself is inherited from Object, which serves as the global object.
Curiously, when analyzing the console debug output, both obj and obj1 are identified as Object. However, when examining the $scope within AngularJS, a different result is obtained
https://i.stack.imgur.com/L92Mc.png
Why does $scope return 'b' instead of Object, especially considering the previous objects? What sets AngularJS apart in this scenario?
UPDATE 1
Noticeably, while creating an object of a constructor in JavaScript, the constructor function name is displayed, as shown in this image
https://i.stack.imgur.com/RBeAK.png
However, in the case of $scope, no constructor function is visible. This discrepancy raises questions - what could be causing this difference? Your insights are welcome.