Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var invalidChoice = function(userChoice) {
- if(userChoice !== "rock") {
- return "Your choice is invalid!";
- }
- else if(userChoice !== "paper") {
- return "Your choice is invalid!";
- }
- else if(userChoice !== "scissors") {
- return "Your choice is invalid!";
- }
- };
- //console.log(invalidChoice(userChoice));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement