Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /*var userChoice = prompt("Do you choose rock, paper or scissors?");
  2. var computerChoice = Math.random;
  3. if (computerChoice <0.34){
  4. computerChoice = "rock";
  5. }else if(computerChoice <=0.67){
  6. computerChoice = "paper";
  7. }else{
  8. computerChoice = "scissors";
  9. }*/
  10.  
  11. var compare = function(choice1, choice2)
  12. {
  13. if (choice1 === choice2)
  14. {
  15. return("The result is a tie!");
  16. }
  17. };
  18. if (choice2 === scissors)
  19. {
  20.  
  21. }
Add Comment
Please, Sign In to add comment