()
| 12 | |
| 13 | //display generated password on UI |
| 14 | function updateUI(){ |
| 15 | const passwordLength = passwordLengthElem.value; |
| 16 | const includeLowercase = lowercaseElem.checked; |
| 17 | const includeUppercase = uppercaseElem.checked; |
| 18 | const includeNumbers = numbersElem.checked; |
| 19 | const includeSymbols = symbolsElem.checked; |
| 20 | const password = generatePassword(passwordLength, includeLowercase, includeUppercase, includeNumbers, includeSymbols); |
| 21 | passwordElem.innerText = password; |
| 22 | } |
| 23 | |
| 24 | function generatePassword(len, isLC, isUC, isNum, isSym){ |
| 25 | let charCodes = []; |
nothing calls this directly
no test coverage detected