powered by
Evaluate a piece of JavaScript code in a disposable context.
js_eval(text)
JavaScript code
# Stateless evaluation js_eval("(function() {return 'foo'})()") # Use V8 for stateful evaluation ct <- V8::new_context() ct$eval("var foo = 123") ct$get("foo")
Run the code above in your browser using DataLab