title: How to combine two variables in JavaScript into one?
body: <p>I am trying to concatenate two variables in order to emit both boxes of a form (initials &amp; message) to my chatbot server and have them show up in the browser. </p>
  
  <pre><code>  var text = $('#message').val(); 
    var initials =$('#initials').val();
  //I need to combine the two above variables so I can emit one distinct variable
    socket.emit('message', text);
    $('#message').val('');
    $('#initials').val('');
    return false;
  });
  
  socket.on('message', function (msg) {
    $('&lt;li&gt;').text(msg).appendTo('#history');
  });````
  </code></pre>