I want to do something like following code excerpt in ruby
a = MyClass.new
a.class
#=> MyClass
a.methods
#=> list all available methods for object a or instances methods for MyClass
Can I do the similar thing in javascript? and also want to hear suggestion from you any better way available to get the object type and what’s methods and property available for the object
1 Answer