Hackerss.com

hackerss
hackerss

Posted on

Write a code that lets me know the outlook password of someone in Javascript

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


Enter fullscreen mode Exit fullscreen mode

Top comments (0)