text: const queryString = window.location.search;
  
  let myData = '';
  
  let myCart = '';
  let myTotal = 0;
  
  console.log(queryString);
  
  if (queryString != "") {
  
      const urlParams = new URLSearchParams(queryString);
  
      urlParams.forEach(function(value, key) {
  
          if (key == "Cart") {
              switch (value) {
                  case "Widget":
                      myCart += "Widget: $3.99<br />"
                      myTotal += 3.99;
                      break;
  
                  case "Sprocket":
                      myCart += "Sprocket: $5.99<br />"
                      myTotal += 5.99;
                      break;
  
                  case "Thingy":
                      myCart += "Thingy: $1.99<br />"
                      myTotal += 1.99;
                      break;
              }
          } else {
              key = key.split("_").join(" ");
  
              function titleCase(value) {
                  value = value.toLowerCase().split(' ');
                  for (var i = 0; i < value.length; i++) {
                      value[i] = value[i].charAt(0).toUpperCase() + value[i].slice(1);
                  }
  
                  return value.join(' ');
              }
  
              if (key == "First Name") {
                  value = titleCase(value);
                  console.log(value);
              }
  
              if (key == "Last Name") {
                  value = titleCase(value);
                  console.log(value);
              }
  
              if (key == "Address") {
                  value = titleCase(value);
                  console.log(value);
              }
  
              if (key == "City") {
                  value = titleCase(value);
                  console.log(value);
              }
              myData += `<p>${key}: ${value}</p>`;
          }
      });
  
      myCart = `
          <p><b>Cart Contents</b></p>
          <p>${myCart}</p>
          <p>Total: $${myTotal}</p>
      `;
  
      myData = myCart + "<p><b>Shipping Information</b></p>" + myData;
  
      myData += `<p><a href="index.html">CLEAR</a></p>`
      document.getElementById("output").innerHTML = myData;
  }