+ 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
2 Answers
+ 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.
+ 1
Arturop good idea thank you. âșïž
It was not exactly what I wanted but it helps me.