here is the question:
Replace the two if statements with one statement, using the && operator, which will return "Yes"
if val
is less than or equal to 50
and greater than or equal to 25
. Otherwise, will return "No"
here is my answer:
function testLogicalAnd(val) {
// Only change code below this line
if (val <= 50 && val >= 25) {
return "Yes";
}
}
// Only change code above this line
return "No";
}
testLogicalAnd(10);
its not doing anything,
I checked with the hints, and I believe i have the same answer.
can anybody help please?