Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Rock, Paper, Scissors game

@Harry-Joseph9387

Desktop design screenshot for the Rock, Paper, Scissors game coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

My 2nd project of doing it alone(well ofc not alone , wat i mean is 90%).

What challenges did you encounter, and how did you overcome them?

I came to know about the delay in updating value of use State variables as they are asynchronous.

To solve that , with help from chat gpt , setVar2(()=>{setVar1(()=>{return value1});return value2 }) assuming 1 indicating that it need to be updated first(hope u get wat i mean :>) )

Then i learned a different prespective view of use Effect i.e. to run a function only after complete update of an use State varible.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord