+ 1

How to get all methods from class?

In the code below I created a Test class with properties and methods. I tried different things to print the methods of this class(see code). I have access to the methods but I don't know how I can print all methods. https://code.sololearn.com/W2c3BU1500tT/?ref=app

1st May 2022, 6:51 PM
Stefanoo
Stefanoo - avatar
2 Antworten
+ 1
Idk if this helps but i just changed it to methodA = function() { return this.a; } methodB = function() { return this.b; } that way methodA and methodB are the keys and whats to the right of the equal signs are the values.
1st May 2022, 8:05 PM
arturop200
arturop200 - avatar
+ 1
Arturop good idea thank you. ☺️ It was not exactly what I wanted but it helps me.
1st May 2022, 8:26 PM
Stefanoo
Stefanoo - avatar