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";
}
testLogicalAnd(10);
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 ?