title: How to assign a value to a property from user input javascript?
body: <p>Hello I'm new at JS, would like to get help. Thanks in advance.</p>
  
  <p>I can get value from user input and assign it as a variable but I am looking to make it as a value of property of an instance.</p>
  
  <p>This is html</p>
  
  <pre><code>&lt;lebel id="car_builtYear" for="year"&gt;Year's Name&lt;/lebel&gt;
  &lt;input type="text" id="year" value=""&gt;
  
  
   &lt;lebel id="car_model" for="model"&gt;Model's Name&lt;/lebel&gt;
   &lt;input type="text" id="model" value=""&gt;
  
  &lt;lebel id="car_maker" for="maker"&gt;Manufacturer's Name&lt;/lebel&gt;
  &lt;input type="text" id="maker"  value=""&gt;
  </code></pre>
  
  <p>This is JS</p>
  
  <pre><code>    var Car = function (maker, model, year) {
      this.maker = maker;
      this.model = model;
      this.year = year;
  }
  </code></pre>
  
  <p>This is working</p>
  
  <pre><code>var Toyota = new Car("Toyota","X",1890);
  </code></pre>
  
  <p>This is not working.</p>
  
  <pre><code>var Toyota = new Car(document.getElementById("maker").value,
                       document.getElementById("model").value,
                       document.getElementById("maker").value);
  </code></pre>