title: Download file from jquery/javascript
body: <p>I have a java script file in which a variable has some string like:</p>
  
  <pre><code>var xw = 'Some content';
  </code></pre>
  
  <p>I want to download this string as a file. How to do this in JQuery/javascript? I don't want to send any request on server using AJAX. Is there any way to download in purely JQuery/javascript ?</p>