title: Concatenate Strings in JavaScript
body: <p>I Have edited the code, the updated code is below, This code is not able to fetch the keywords meta tag, hence it is not working. </p>
  
  <p><strong>old description:</strong> <em>I am trying to concatinate the strings to get the finalUrl, but I am not able to do so becuase of the tags variable. I need to fetch the keywords meta tag of the page and append it to get the finalUrl. Any help?</em></p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
  
  
      var tags=$('meta[name=keywords]').attr("content");
      var gameurl = "http://xyz/abc/details/";
      var jsn = ".json?callback=showGameDetail";
      var finalUrl= gameurl.concat(tags).concat(jsn);
  
  
  function loadJSON(url) {
    var headID = document.getElementsByTagName("head")[0];
    var newScript = document.createElement('script');
        newScript.type = 'text/javascript';
        newScript.src = url;
    headID.appendChild(newScript);
  }
  
  function showGameDetail(feed){
    var title = feed.title;
  
  
  
      var game_url = feed.pscomurl;
      var packart_url = feed.Packart;
    $("#bnr-ads-box").html("&lt;img src='"+"http://abc.com/"+packart_url+"'&gt;");
  
  
  
  
  }
  
  loadJSON(finalUrl);
  &lt;/script&gt;
  &lt;div id="bnr-ads-box"&gt;&lt;/div&gt;
  </code></pre>