diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index e96630c3c4..6c8f8d590d 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -3358,7 +3358,7 @@ "Sometimes you will need to test more than one thing at a time. The logical and operator (&&) returns true if and only if the operands to the left and right of it are true.", "The same effect could be achieved by nesting an if statement inside another if:", "
if (num > 5) {
if (num < 10) {
return \"Yes\";
}
}
return \"No\";
", - "will only return \"Yes\" if num is between 6 and 9 (6 and 9 included). The same logic can be written as:", + "will only return \"Yes\" if num is greater than 5 and less than 10. The same logic can be written as:", "
if (num > 5 && num < 10) {
return \"Yes\";
}
return \"No\";
", "

Instructions

", "Combine the two if statements into one statement which will return \"Yes\" if val is less than or equal to 50 and greater than or equal to 25. Otherwise, will return \"No\"."