code: function(javascript) {
      try {
        return Promise.resolve({
          input: javascript,
          output: eval(javascript),
          exception: null
        });
      }
      catch (ex) {
        return Promise.resolve({
          input: javascript,
          output: null,
          exception: ex
        });
      }
    }
docs: Execute some JavaScript