I'm using Rhino. and after doing
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects();
cx.evaluateString(scope, "function f(x,y){ return x+y}", "<cmd>", 1, null);
I'd like to know that there's a function with the name f
and two parameters x
and y
but could not find any methods that can help me with that.
Try to use next code.
The output is: