text: var http = require("http");
  var PORT = 8080;
  var fs = require("fs");
  var server = http.createServer(handleRequest);
  
  // Start our server
  server.listen(PORT, function() {
    // Callback triggered when server is successfully listening. Hurray!
    console.log("Server listening on: http://localhost:" + PORT);
  });
  
  // Create a function which handles incoming requests and sends responses
  function handleRequest(req, res) {
  
    // Capture the url the request is made to
    var path = req.url;
  
    // Depending on the URL, display a different HTML file.
    switch (path) {
  
    case "/":
      return displayRoot(path, req, res);
  
    case "/home":
      return displayPortfolio(path, req, res);
    
    case "/Favorite_Foods":
       return fs.readFile(__dirname + "/Favorite_Foods.html", function(err, data) {
      res.writeHead(200, { "Content-Type": "text/html" });
      res.end(data);
    });
  
  
    case "/Favorite_Movies":
      return fs.readFile(__dirname + "/Favorite_Movies.html", function(err, data) {
          res.writeHead(200, { "Content-Type": "text/html" });
          res.end(data);
      });
      
     case "/Favorite_CSS_Frameworks":
     return fs.readFile(__dirname + "/Favorite_CSS_Frameworks.html", function(err, data) {
      res.writeHead(200, { "Content-Type": "text/html" });
      res.end(data);
     });  
  
  //   default:
  //     return display404(path, req, res);
    }
  }
  
  // When someone visits the "http://localhost:8080/" path, this function is run.
  function displayRoot(url, req, res) {
    var myHTML = "<html>" +
      "<body><h1>Home Page</h1>" +
      "<a href='/portfolio'>Portfolio</a>" +
      "</body></html>";
  
    // Configure the response to return a status code of 200 (meaning everything went OK), and to be an HTML document
    res.writeHead(200, { "Content-Type": "text/html" });
  
    // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
    res.end(myHTML);
  }
  
  // When someone visits the "http://localhost:8080/portfolio" path, this function is run.
  function displayPortfolio(url, req, res) {
    var myHTML = "<html>" +
      "<body><h1>My Portfolio</h1>" +
      "<h1> Favorite_Food</h1>" +
      "<h1> Favorite_Movies</h1>" +
      "<h1> Favorite_CSS_Frameworks<h1>" +
  
    // Configure the response to return a status code of 200 (meaning everything went OK), and to be an HTML document
    res.writeHead(200, { "Content-Type": "text/html" });
  
    // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
    res.end(myHTML);
  }
  
  // When someone visits any path that is not specifically defined, this function is run.
  function display404(url, req, res) {
    var myHTML = "<html>" +
      "<body><h1>404 Not Found </h1>" +
      "<p>The page you were looking for: " + url + " can not be found</p>" +
      "</body></html>";
  
    // Configure the response to return a status code of 404 (meaning the page/resource asked for couldn't be found), and to be an HTML document
    res.writeHead(404, { "Content-Type": "text/html" });
  
  
    // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
    res.end(myHTML)
  
  }
  function Favorite_Movies(url, req, res) {
      var myHTML = "/Favorite_Movies.html"
    
      // Configure the response to return a status code of 200 (meaning everything went OK), and to be an HTML document
      res.writeHead(200, { "Content-Type": "text/html" });
    
      // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
      res.end(myHTML);
    }
    function Favorite_Foods(url, req, res) {
      var myHTML = "/Favorite_Foods.html"
    
      // Configure the response to return a status code of 200 (meaning everything went OK), and to be an HTML document
      res.writeHead(200, { "Content-Type": "text/html" });
    
      // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
      res.end(myHTML);
    }
    function Favorite_CSS_Frameworks(url, req, res) {
      var myHTML = "/Favorite_CSS_Frameworks.html"
        
      // Configure the response to return a status code of 200 (meaning everything went OK), and to be an HTML document
      res.writeHead(200, { "Content-Type": "text/html" });
    
      // End the response by sending the client the myHTML string (which gets rendered as an HTML document thanks to the code above)
      res.end(myHTML);
    }