0
Password Generator
Why is my password coming out as nan? I set the character limit to 8 but its still not working. https://code.sololearn.com/WTQ5iB2a8kU2
3 Answers
+ 1
// Good Luck
const characters = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()";
let rand = "";
while (rand.length < 8) {
rand += characters[Math.floor(Math.random() * characters.length)];
}
console.log(rand);
0
https://youtu.be/cVPlU8nIJmI Do you know what is oop?
0
ye it stands for object oriented programming