title: How to compile the Javascript code in Karate framework
body: <p>I've the JSON as below:</p>
  
  <pre><code> {
    "id" : 6759,
    "type" : "JAVASCRIPT",
    "code" : "var result = request.getBody().tostring.indexOf('locate') || request.getBody().tostring.indexOf('find')",
    "description" : "This filters checks synonym of search word"
  }
  </code></pre>
  
  <p>In above JSON, <strong>code</strong> attribute is mapped with certain javascript.</p>
  
  <p>I've to validate the value of code attribute.</p>
  
  <p>The validation of value of code attribute should return true, if value of code attribute has no any compilation error.</p>
  
  <p>The validation of value of code attribute should return false, if value of code attribute has compilation error using.</p>
  
  <p>How should make possible to compile the javascript ( i.e. value of <strong>code</strong> attribute) as part of validation in Intuite/karate testing ? </p>