MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / updateUI

Function updateUI

Password-Generator/app.js:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13//display generated password on UI
14function 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
24function generatePassword(len, isLC, isUC, isNum, isSym){
25 let charCodes = [];

Callers

nothing calls this directly

Calls 1

generatePasswordFunction · 0.85

Tested by

no test coverage detected