Learning JavaScript Syntax : Rock,Paper, Scissors

Hello, would anyone kindly point out where the mistake in my code below

everytime i want to log the function above the second parameter always undetected
the ’ ’ is where i find this problem. half of it in a white color and the other is yellow like you usually see on a string.
really appreciate any help. thank you!

Hello, and welcome to the forums!

I think you’re experiencing a syntax highlighting issue and not actually a bug in your code. Sometimes the editor in the Codecademy learning environment doesn’t show the right syntax highlighting, especially after using arrow functions.



I still suggest sticking with arrow functions, but be conscious of the possibility that there isn’t a bug. By the end of this project, you won’t see any syntax highlight issues because the code that calls the other functions will be in a function of its own.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.