Just doing a quick rock, paper and scissors exercise and I would like to loop the prompt if it’s null or choice
is different than “rock”, “paper” or “scissors” and store the input value and end the prompt if “rock”, “paper” or “scissors”:
I have tried adding while (input === null OR input !== choices.includes(input)
and while (input === null OR input === !choices.includes(input)
but none of them seems to work. I believe my logic is correct but somehow is not working.
Can someone explain it to me? Thanks.
2