Write a code that lets me know the outlook password of someone - Javascript:
//function to get the password
function getPassword(name) {
//return the password of the person
return `${name}'s password is ${name.length *
21}`;
}
//example
const result = getPassword("Oluwafemi");
//output
console.log(result); //Oluwafemi's password is 252
Top comments (0)