powered by
Get the value of a variable from the current context
get(var_name)
The value of the variable
The name of the variable to retrieve
if (FALSE) { ctx <- JSContext$new() ctx$source(code = "var a = 1;") ctx$get("a") }
Run the code above in your browser using DataLab