Tell us what’s happening:
What did I do wrong?
Your code so far
function testLogicalAnd(val) {
// Only change code below this line
if (val >= 25 && val <= 50) {
return "Yes";
}
}
// Only change code above this line
return "No";
}
testLogicalAnd(10);
Your browser information:
User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1
.
Challenge: Comparisons with the Logical And Operator
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator