title: Javascript var inside another var
body: <p>I'm JS novice,
  My problem is that I have a var <code>resortuid</code> its value is from PHP (it's working). I need to open a json file with <code>resortuid</code> in link. In other words I need to replace <code>XXXX</code> in url with <code>resortuid</code> var. I'm sure that it is a banal question, but not for me.<br />
  EDIT: codefrom first response is working on SO, but not in TYPO3 fluid template, my new question is how to pass it to fluid template?</p>
  <pre class="lang-js prettyprint-override"><code>var resortuid = '1125';
  var settings = {  
      &quot;url&quot;: &quot;https://aaa.aa/XXXX_simple.json&quot;,
      &quot;method&quot;: &quot;GET&quot;,
      &quot;timeout&quot;: 0,
  };
  </code></pre>