Why can't I insert the value of an input into another input? The following example doesn't work:
document.getElementById("input").oninput = () => {
  const input = document.getElementById('input');
  const output = document.getElementById('output');
  // Trying to insert text into 'output'.
  output.innerText = input.value;
};<input id="input" placeholder="enter value of temperature" />
<br>
<input id="output" />Thank you!
 
     
     
     
    