javascript password max length

Solutions on MaxInterview for javascript password max length by the best coders in the world

showing results for - "javascript password max length"
Abigail
09 Oct 2017
1    let pass = document.getElementById('pass-one');
2    let count = document.getElementById('counter');
3    let maxLength = 10;
4    pass.setAttribute('maxlength', maxLength);
5    pass.addEventListener('input', () => {
6        count.innerText = `${pass.value.length}/${maxLength}`;
7    })