Javascript Code Interpreter

A string containing the JavaScript statements comprising the function definition to be passed to eval() \n- Don't use return, instead just write down the javascript code/expression\n- Prefer async/await over .then() promise syntax\n- If you write code that fails to run, you can iterate on the code by attempting to run different code until the code execution succeeds. \n- You cannot use external libraries in this environment using import or require. Please use standard browser APIs instead.\n- use console.log() if you need to debug the code you have written

Loading...
Variables

  functionBody

string

A string containing the JavaScript statements comprising the function definition to be passed to eval()

  • Don't use return, instead just write down the javascript code/expression
  • Prefer async/await over .then() promise syntax
  • If you write code that fails to run, you can iterate on the code by attempting to run different code until the code execution succeeds.
  • You cannot use external libraries in this environment using import or require. Please use standard browser APIs instead.
  • use console.log() if you need to debug the code you have written
Loading...
Secrets

Run cost = 1 credits

Functions are free if called from another workflow.

With each run, you agree to Gooey.AI's terms & privacy policy.


Logs

hey