SyntaxFix
Write A Post
Hire A Developer
Questions
You have to use == to compare (or even ===, if you want to compare types). A single = is for assignment.
==
===
=
if (one == 'rock' && two == 'rock') { console.log('Tie! Try again!'); }