Build a Password Generator App - Build a Password Generator App

Tell us what’s happening:

Good day, i keep getting this error.
You should log the generated password to the console.

Your code so far

function generatePassword(members) {
  if (members !== "") {
    const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()"; 
    
    let password = "";

    for (let i = 0; i < members; i++) {
      const pass = characters.charAt(Math.floor(Math.random() * characters.length));
      password += pass;
    }

    return password; 
  }
}

const password = generatePassword(12);

console.log(password);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Build a Password Generator App - Build a Password Generator App

I would reread User Story 4

You should have a console.log that logs the message "Generated password:" followed by the password variable.

oh thank you so much