That means the constructor should define:Ī string value to store the underlying character for the letterĪ boolean value that stores whether that letter has been guessed yetĪ function that returns the underlying character if the letter has been guessed, or a placeholder (like an underscore) if the letter has not been guessedĪ function that takes a character as an argument and checks it against the underlying character, updating the stored boolean value to true if it was guessed correctly This constructor should be able to either display an underlying character or a blank placeholder (such as an underscore), depending on whether or not the user has guessed the letter. Letter.js: Contains a constructor, Letter. Your solution should have, at minimum, three files: The completed game should be able to receive user input using the inquirer or prompt npm packages. The completed game should meet the following criteria: Please submit the link to the Github Repository!. In this unit's assignment, you will create a Word Guess command-line game using constructor functions. Advanced JavaScript Assignment: Constructor Word Guess Overview
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |