how to get ExecuteJavascript function's result variable?

how to get ExecuteJavascript 's run function’s result variable In XOJO Web Project?

Example, i have a function call “Add(int number1, int number2)” and return a Plus calculation result , i want to use ExecuteJavascript to run this Plus method , And I want to get this result variable, how to implement it?

Well, it’s asynchronously, so the calculation will be done when your current code finished.
You could use Web SDK to send an event back from your control.