Conclusion


#1


What is the problem? I am not really sure about it.

https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/5?curriculum_id=506324b3a7dffd00020bf661


It says a problem in my syntax and unexpected token.


var game = function(Rock,Paper,Scissors){
    if(Rock){
        return "You beat Scissors but lose to Paper";
        }
    else(Paper){
        return "You beat Rock but lose to Scissors";
        }
    elseif{
        return "You beat Paper but lose to Rock";
        }
    };
game(Rock)


#2

Is it because it says "elseif"


#3

There are other errors, but no matter. This is not the lesson for Rock, Paper, Scissors... The next unit is.

https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/1

You will not be writing this on your own, but must follow the instructions closely.


#4

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