Skip to content

Instantly share code, notes, and snippets.

@carlovsk
Created May 17, 2022 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlovsk/84b9f88c67e8f5cfafe09a0a9ea70137 to your computer and use it in GitHub Desktop.
Save carlovsk/84b9f88c67e8f5cfafe09a0a9ea70137 to your computer and use it in GitHub Desktop.
Cool and memorable password generator
// This will receive a word or phrase as a parameter and return the same string but with all the letter "E"s replaced by the number 3
function generateCoolPwd (str) {
console.log(str.replaceAll('e', 3).replaceAll('E', 3))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment