Skip to content
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

Project 4 suggestion:to remove prevGuess [] array #37

Open
tech-savvy-subh opened this issue Feb 9, 2024 · 1 comment
Open

Project 4 suggestion:to remove prevGuess [] array #37

tech-savvy-subh opened this issue Feb 9, 2024 · 1 comment

Comments

@tech-savvy-subh
Copy link

Hi Hitesh,
I was doing some js practices from your videos and came after this project and was going through the code but did not understand project 4 do we need the prevGuess[] cause it is not used for displaying anything it just keeps track of the elements pushed but it is not used anywhere,
help me understand as I am a beginner but if I am missing something here.

@ashwani798
Copy link

you can remove the prevGuess[] array. It's currently not contributing to the game's functionality. This simplification makes your code cleaner without affecting the game's performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants