9/9 Rock, Paper, Scissors


#1

I have finished this section, but my question is about the return function. All over coding the game we used return "Scissors wins" or "rock wins" or whatever. At the end of the section when I tried to save and submit, console didnt print out x wins !, why is that ?


#2

Did you call the function? Did you wrap your function call in a console.log?


#3

I had the same hang up, I was console.logging outside the function, but I moved it within the last } and it's printing the full result. Here's what the end of my code looks like:

}
console.log(compare);
}
compare(userChoice, computerChoice);