Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 24, 2020 17:41
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 parzibyte/e153f94711b650b3fd347613357163d6 to your computer and use it in GitHub Desktop.
Save parzibyte/e153f94711b650b3fd347613357163d6 to your computer and use it in GitHub Desktop.
prepareWord(word) {
word = word.toUpperCase();
const hiddenWord = [];
for (const letter of word) {
hiddenWord.push({
letter,
hidden: true,
});
}
this.hiddenWord = hiddenWord;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment