qjs_eval | R Documentation |
Evaluate a single Javascript expression.
qjs_eval(eval_string)
eval_string |
A single string of the expression to evaluate |
The result of the provided expression
# Return the sum of two numbers:
qjs_eval("1 + 2")
# Concatenate strings:
qjs_eval("'1' + '2'")
# Create lists from objects:
qjs_eval("var t = {'a' : 1, 'b' : 2}; t")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.