Help Java Script 13


#1

I have no idea:

var playChoice = function(paper, rock, scissors){

if
return "You win";

else
return "You lose";

};
scissors()
rock()
paper()


#2

On your if statement then you need to add arguments and parenthesis like this :

if(arguments) {

run this line of code

} else {

run this line of code.

}

Also why did you put this?

You are only suppose to call functions that way, and rock, paper, and scissors are not functions. And I don't think that your suppose to pass them as arguments in your function either.

Pleas post a link to the exercise so that I may help you some more.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.