Please help on question 5 now!


#1

My code is:
/*var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissors";
} console.log("Computer: " + computerChoice);*/

var compare = function(choice1, choice2) {
if(choice1 === choice2) {
return "The result is a tie";
}
};

Can you help me?
I've been waiting for soo long!
I just need help on the repeat command I think!
So plz help!!


#2

HELP NOW!!!
IM WAITING FOR SOO LONG!!!
NOW!!!
HELP!!Plz


#3

HELLo!!
Is anyone there??????


#4

@miner_minecrafter please send me the error message and the question the problem is asking you to do.


#5

Its this:

Oops, try again.
Your compare function does not return 'The result is a tie!' when there is a tie.


#6

Add a " !" at end of your string like that

"The result is a tie!"

#7

@miner_minecrafter try putting " ' ' " around ""The result is a tie!"" Also add a "!" to the end of your statement.


#8

THANK YOU!!!!
:wink:


#9

@miner_minecrafter It is the least i can do.


#10

Both of you(@fluttershypinkiepie and @wizmarco )


#11

@miner_minecrafter I apologize that it took so long for me to find your problem, it didn't show up in the forums.