I created a JavaScript object, but how I can determine the class of that object?
I want something similar to Java\'s .getClass()
method.
Javascript is a class-less languages: there are no classes that defines the behaviour of a class statically as in Java. JavaScript uses prototypes instead of classes for defining object properties, including methods, and inheritance. It is possible to simulate many class-based features with prototypes in JavaScript.