Comparisons with the Logical And Operator error

the exercise i have to do is this
Replace the two if statements with one statement, using the && operator, which will return the string Yes if val is less than or equal to 50 and greater than or equal to 25 . Otherwise, will return the string No .

this is my code

function testLogicalAnd(val) {

  // Only change code below this line

  if (val <= 50 && >= 25) {

      return "Yes";


  // Only change code above this line

  return "No";



this is what the console shows
SyntaxError: unknown: Unexpected token (4:18)

this sign > is the error but i don’t know why. does someone knows ?

&& joins two indipendent statements

>= 25 has no meaning on its own, you are missing something there

thank you so much i miss val, you are amazing
I owe you one

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