Would you help a complete beginner? (rock-paper-scissors-lizard-spock game)

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Would you help a complete beginner? (rock-paper-scissors-lizard-spock game)

Hello!
i just started to learn Javascript and i tried to write a rock - paper - scissors - lizard - Spock game,
it doesn't return the right answers.
what have i done wrong? the nesting? the math.random()?

I have always hated the answers like the one I'm going to give to you but the fact that this issue (making rock-paper-scissors game) was already discussed many times before I would suggest you use the search function of the forum.