OK, no worries. Let’s look at the function. What are the a, b variables in the function for? Why are they there? What do they do? And are you using them in the body of your function?
The a variable is the condition whiles the b variable is the code to run,
in this case i’m asked to check if the two variables (a, b) are equal or not using the conditional operator.
I tried using the if/else statement after struggling with the condiotional operator but all same, not passing the test.
The condiotional operator is not the problem. How is your code checking for a and b if they are not used inside your code? Now you have hard coded in 1 and 2, and that’s the only numbers your code can handle. How can you fix that?