Hi, I am having some trouble with the rock, paper, scissors assignment. I went back to review the code I wrote in the conditionals section and I think I made an error here in the final else statement. Since, in this code, the script does not continue to run to the else statement, I did not notice it before. This will not log anything without the console.log(‘message’) portion, am I correct?
Following this, I am trying to write an if… else statement for the assignment as so:
I believe this is correct but I cannot check since the assignment hints show me an alternative ternary method of writing out the code. I would like to first make sure that I am correctly able to write out the long-form version of this conditional before using the ternary suggestion.
Can anyone see what my errors are here? I would really appreciate the explanation!