title: Concatenate a variable in a url
body: <p>I'm using the wikipedia and Google APis.</p>
  
  <p>When I select a city, I want to display the page from wikipedia. I have some problems on putting the city variable in wiki search url.</p>
  
  <p>The city is in myVariable var.</p>
  
  <pre><code>    **var myVariable = locality;** 
        $.ajax({
            type: "GET",
            url: "http://en.wikipedia.org/w/api.php?action=parse
  &amp;format=json&amp;prop=text&amp;section=0&amp;page= + myVariable + &amp;callback=?",
  </code></pre>
  
  <p>I know that in javascript we make the concatenation with + but I guess I'm doing something wrong there and I can't figure out what.</p>