title: I don't see why my code isn't taking the value of the input box and making a new object
body: <p>The code for this is at</p>
  
  <p>This is the Javascript :</p>
  
  <pre><code>document.getElementById("submit").onclick = function() {
  
      function Person(fullname, job, country, city) {
          this.fullname = fullname;
          this.job = job;
          this.country = country;
          this.city = city;
      }
  
      var fullname = document.getElementById("fname").value;
      var job = document.getElementById("job").value;
      var country = document.getElementById("country").value;
      var city = document.getElementById("city").value;
  
      var me = new Person(fullname, job, country, city);
  
      document.getElementById("p").innerHTML = me.fullname + ". Congratulations an object has been made with your information stored in it, the following information is what you have given us. Your job is a " + me.job + "You live in" + me.city + "," + me.country + ".";
  };
  </code></pre>