title: Return a 'string' from javascript eval() function
body: <p>I am trying to evaluate an expression like <code>a == b ? 'Ok' : 'Cancel';</code> using JavaScript <code>eval()</code> but is shows error.</p>
  
  <p>Is there any way to execute and return string out of <code>eval()</code> ?</p>
  
  <p>Regards,
  Nwbrd</p>