Instruction or objective is wrong in the question
See original GitHub issueChallenge Comparisons with the Logical Or Operator has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function testLogicalOr(val) {
// Only change code below this line
if (val>=10 || val<=20) {
return "Outside";
}
// Only change code above this line
return "Inside";
}
// Change this value to test
testLogicalOr(15);
Combine the two if statements into one statement which returns “Outside” if val is not between 10 and 20, inclusive. Otherwise, return “Inside”.
Either instruction is wrong here or objective is wrong How can you you check between condition with || operator? I think there is some bug.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Objective or Subjective? Those are the Questions
But a common worry is that objective tests cannot assess learning beyond basic comprehension. However, questions that are constructed ...
Read more >7 Mistakes to Avoid When Writing Multiple-Choice Questions
Solution: Check for grammatical consistency. When using “a” or “an” make sure there is agreement with the wording of the options. Don't ask...
Read more >Avoid Common Mistakes When Writing Learning Objectives
However, a common mistake is to write the objective and focus on what the teacher is planning to do in the lesson.
Read more >Writing Good Multiple Choice Test Questions
1. All alternatives should be plausible. The function of the incorrect alternatives is to serve as distractors,which should be selected by students who...
Read more >14 RULES FOR WRITING MULTIPLE-CHOICE QUESTIONS
14 RULES FOR WRITING MULTIPLE-CHOICE QUESTIONS. 1. Use Plausible Distractors (wrong-response options). • Only list plausible distractors, even if the number ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
since I have changed all of them I cant give you a screenshot with the error.
@swapy Thanks for the issue, but this is not a bug with the challenge. The
||
can be used to check the between condition.I am tempted to give you a hint
if (val>=10 || val<=20)
translate this into pure English and maybe you will get what’s wrongSomething similar like union of sets?
Please consult the JavaScript Chat Room for any assistance to Coding.
Happy coding!