I could not perform the output of the value written to the input at the bottom

Solution 1:

You can achieve your goal by using input_event on the input tag, like this:

let demo = document.getElementById('demo');
document.getElementById('myText').addEventListener('input',function(){
  demo.innerHTML= this.value;
})
#demo{ 
  background: #eee;
  min-height:20px;
}
<input type="text" id="myText">
<p id="demo"></p>