javascript senha comprimento máximo

    let pass = document.getElementById('pass-one');
    let count = document.getElementById('counter');
    let maxLength = 10;
    pass.setAttribute('maxlength', maxLength);
    pass.addEventListener('input', () => {
        count.innerText = `${pass.value.length}/${maxLength}`;
    })
Rocket Noob