Lesson 3. computer choice part 1


#1

Does anyone know what I did wrong?

https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/3?curriculum_id=506324b3a7dffd00020bf661#

It keeps saying did you remember to log computer choice to the consol


#2

Please edit your post and place the code from the lesson you are on inside your post please. It will help us know what's wrong with it.


#3

Hi,
below is my code:
but it never output anything and when i save and submit it tells me congratulations next level

var game = function (c1, c2 , c3)
{
if (c1 === c2)
{
console.log("its a tie");
}
else if (c1 === c3)
{
console.log("its a tie");
}
else if (c2 === c3)
{
console.log("its a tie");
}
else if(c1 === "rock")
{
if(c2 === "paper")
return "rock wins";

}
else {
    return "scissor wins";
    }

};
game("rock", "scissor", "paper");