title: What is the relationship between ports and Nodejs? What does a port mean to NodeJS?
body: <p>In Node, a server will <em>'listen'</em> on a port. </p>
  
  <p>What information comes in to the port? In what format is the information, JS? How does Node transform the information?   </p>
  
  <p><a href="https://www.w3schools.com/nodejs/met_server_listen.asp" rel="nofollow noreferrer">https://www.w3schools.com/nodejs/met_server_listen.asp</a></p>
  
  <pre><code>var http = require('http');
  http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.write('Hello World!');
    res.end();
  }).listen(8080);
  </code></pre>