I have maked this code about the exercice of rockPaperscissors exercice in the chapter function

Welcome to the Get Help category!

This is where you can ask questions about your code. Some important things to remember when posting in this category :slight_smile:

  • Learn how to ask a good question and get a good answer!
  • Remember to include a link to the exercise you need help with!
  • If someone answers your question, please mark their response as a solution :white_check_mark:
  • Once you understand a new concept, come back and try to help someone else! (https:///home/ccuser/workspace/javascript_101_Unit_3/Unit_3/rockPaperScissors.js:31)

THank you for help me

this is my code:
determineWinner = (userChoice, computerChoice) => {

if (userChoice === computerChoice) {

return 'the game is tie'

} else {

if (userChoice ==='rock' ) {

if (computerChoice ==='paper') {

  return 'you are lost!'

} else {

  'you are win!'

} if (userChoice ==='paper' && computerChoice !==='paper') {

if (computerChoice ===‘scissors’) {

return “You are lost!”

} else {

“You are win!”

} if (userChoice ===‘scissors’ && computerChoice !===‘scissors’){

if(computerChoice ====‘rock’){

return "You are lost!"

}else {

"You are win!"

}

}

}



} 

console.log(determineWinner(‘rock’,‘paper’))

and this is the console which execute to me:
home/ccuser/workspace/javascript_101_Unit_3/Unit_3/rockPaperScissors.js:28
} if (userChoice ===‘paper’ && computerChoice !===‘paper’) {
^
SyntaxError: Unexpected token =
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)https://gist.github.com/0bae3d516e9c0bc47f4fb8f69fc2008c

Hey there, welcome to the forums!

The strict equality operator has a maximum of three characters.

In your code, it has four.

You can find out more by reading this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality