0

I have a simple Java function which return Integer:

class TestClass {
     private int testMethod(int a, int b){
     // Some code
     return a + b;
     }
}

How can I call this function from JavaScript and store the return value in variable?

user5783530
  • 221
  • 1
  • 4
  • 16

0 Answers0