javascript password max length

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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    })