Executes the supplied string as JavaScript inside the browser.
A call to this function is blocking, the result is returned as-is, as a string.
(Internally this will execute the string using the eval() JavaScript function.)
PARAMETERS
code
Javascript code to run
RETURNS
result
result as string
EXAMPLES
localres=html5.run("10 + 20")-- returns the string "30"print(res)localres_num=tonumber(res)-- convert to numberprint(res_num-20)-- prints 10