title: NodeJS function not called
body: <p>I am calling a function to build a specially formatted string (x2) from an array of strings (x).</p>
  
  <p>Code:</p>
  
  <pre><code>http.createServer(function handler(req, res) {
      res.writeHead(200, {'Content-Type': 'text/html'});
      ...
      function test(x){
          var x2="";
          x2.concat(x);
          return x2;
      }
      ...
      var x = "abcd";
      console.log(test(x));
  }).listen(1337, '127.0.0.1');
  console.log('Server running at http://127.0.0.1:1337/');
  </code></pre>
  
  <p>The result is that the function doesn't get called. I've tried placing a <code>console.log("...")</code> inside and it doesn't show either. Everything else in the project works fine.</p>
  
  <p>I'm completely new to JS/NodeJS so it might be something trivial I'm missing.</p>