<input type="number">
<section>text:</section>
<div></div>
const div = document.querySelector('div');
document.querySelector('input').addEventListener('input', e => div.innerHTML = e.target.value)

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.