Advertisement
Sandsky0

Untitled

Aug 7th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var compare = function (choice1, choice2){
  2. if (compare === compare) {
  3. return "The result is a tie!";
  4. }
  5. if (compare === "rock"){
  6. } if (compare === "scissors")
  7. return "rock wins";
  8. else{
  9. return "paper wins";
  10. }
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement