title: How do I copy the value of an HTML element to another value of an HTML element?
body: <blockquote>
    <p>Write a function named "inputCopied" that doesn't take any parameters and doesn't return a value. This function should find an HTML element with an id of "user", which will be a text box, and set this value as the HTML inside an element with an <code>id</code> of "copied".</p>
  </blockquote>
  
  <pre><code>function inputCopied() {
      var y = document.getElementById('copied');
      return y.value = 'user';
  }
  </code></pre>
  
  <p>How do I copy the value of an HTML element to another value of an HTML element? My code doesn't seem right.</p>