powered by
Call a specified function in the JavaScript context with the provided arguments.
call(function_name, ...)
The result of calling the specified function
The function to be called
The arguments to be passed to the function
if (FALSE) { ctx <- JSContext$new() ctx$source(code = "function add(a, b) { return a + b; }") ctx$call("add", 1, 2) }
Run the code above in your browser using DataLab