1
In the code below it would be interesting if I could define i as Let and be able to keep pass as var, have to do this without being declaring pass in a line above?
const randPass = () => {
for (var i = 0, pass = ""; i < 8; i++) {
pass = `${pass}${randChar()}`;
}
return pass;
}
Why do you want to use Let and var? Is there a specific reason?
– Paulo Rogério da Silva