title: How to execute javascript code from python with arguments
body: <p>Executing javascript from python using Naked.toolshed.shell:
  <a href="https://stackoverflow.com/questions/38622385/how-can-i-execute-javascript-code-from-python">How can I execute JavaScript code from Python?</a>
  Answered my question fine, But is there any way to do this AND pass an argument through to be executed? like</p>
  
  <pre><code>from Naked.toolshed.shell import execute_js
  
  response = execute_js('file.js', arg1) # arguments to pass
  if response.exitcode == 0:
    print(response.stdout)
  else:
    sys.stderr.write(response.stderr)
  </code></pre>
  
  <p>while file.js may look something like</p>
  
  <pre><code>var x = 10;
  x = 10 - arg1; // to pass argument here
  console.log(x);
  function greet() {
        console.log("Hello World!");
  }
  greet()
  </code></pre>
  
  <p>Is there a way to accomplish this?</p>