const input = document.getElementById('input'); const output = document.getElementById('output'); output.addEventListener('input', function(){ output.textContent = output.value; });
document.querySelectorAll('input')[0].value
в html js