Tell us what’s happening:
Hi all,
I don’t understand how to get the value to return true, what am i missing?
what are the steps i should take to solve this problem?
Your code so far
function testLogicalAnd(val) {
// Only change code below this line
if (val <= 50 && val >= 25) {
return "yes";
}
// Only change code above this line
return "No";
}
// Change this value to test
testLogicalAnd(10);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
.
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