-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isaac_Kamran_Guess_Who #340
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy website: https://isaac-kamran-guess-who.netlify.app/
The game works as required. The code is written clearly and can be understood. However, I would remove the excess comments which are like Technigo commands - because they are unnecessary (I am talking about the example of entering the code with filter ()). But overall the code is well written. |
const checkMyGuess = (personToCheck) => { | ||
if (personToCheck === secret["name"]) { | ||
questions.style.display = "flex" | ||
winOrLose.style.display = "flex" | ||
board.style.display = "none" | ||
winOrLoseText.innerHTML = "WOOHOO! YOU WON!" | ||
} else { | ||
questions.style.display = "flex" | ||
winOrLose.style.display = "flex" | ||
board.style.display = "none" | ||
winOrLoseText.innerHTML = "OH NO! YOU LOST!" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code looks nice. Can you tell me why you use flex? I'm curious because I have it done differently, but I'd like to know what you had in mind when writing this code :)
Finished all steps.