javascript how to add a variable to a string
<p>I'm using javascript and jquery, I have a string like</p>

<pre><code>  var apiUrlAnswer = 'https://api.stackexchange.com/2.0/answers/{ids}?order=desc&amp;sort=activity&amp;site=stackoverflow';
</code></pre>

<p>I need replace the <code>{ids}</code> with a variable.</p>

<p>In C# is possible to use a method called </p>

<pre><code>String.Format(https://api.stackexchange.com/2.0/answers/{0}?order=desc&amp;sort=activity&amp;site=stackoverflow, myVariable);
</code></pre>

<p>I would like to know if exist something similar in Javascript so I can avoid simple string concatenation.</p>

<p>Thanks for your help!</p>
