title: JavaScript syntax with server-side Url.Content
body: <pre><code>currentObject = someValue;
  var src = '&lt;%=Url.Content("~/Content/images/locations/" + currentObject + ".jpg")%&gt;';
  </code></pre>
  
  <p>But since Url.Content is in ', the currentObject is 'currentObject', and not its value.</p>
  
  <p>How to write the above code with currentObject's value, not name?</p>