why static methods of Object class are not inherited by other classes in JavaScript
In JavaScript If I create a class with a static method and then create a subclass of that class, I can call the static method using subclass name too (static methods are inherited). Object class which is superclass of all…