question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It should be <10 and >5.

Challenge Comparisons with the Logical Or Operator has an issue. User Agent is: Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1. 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) {
    return "Outside";
  }

  if (val) {
    return "Outside";
  }

  // Only change code above this line
  return "Inside";
}

// Change this value to test
testLogicalOr(15);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dna113pcommented, Oct 8, 2016

I am not sure if this is talking about the problem itself or the example text. The example text is:

will return "Yes" only if num is between 5 and 10 (5 and 10 included). The same logic can be written as:

if (num > 10 || num < 5) {
  return "No";
}
return "Yes";

Which is certainly correct.

The problem Instructions don’t even deal with 5 and 10 but rather 10 and 20 so maybe there is a confusion between the example and the instructions for the problem.

0reactions
raisedadeadcommented, Oct 26, 2016

Closing as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mistake Definition & Meaning - Merriam-Webster
Kids Definition ; 1 · to understand wrongly : misinterpret. mistook my meaning ; 2 · to estimate incorrectly. mistook the strength of...
Read more >
Mistake Definition & Meaning - Dictionary.com
1. Mistake, blunder, error, slip refer to deviations from right, accuracy, correctness, or truth. A mistake, grave or trivial, is caused by bad...
Read more >
MISTAKE | definition in the Cambridge English Dictionary
an action or decision that is wrong or produces a result that is not correct or not intended: We all make mistakes. [...
Read more >
Mistake - Definition, Meaning & Synonyms - Vocabulary.com
A mistake is an error, a goof, a slip-up. When you make a mistake, you've done something incorrectly. Mistake has a lot of...
Read more >
mistake - Wiktionary
VerbEdit · (transitive) To understand wrongly, taking one thing or person for another. quotations ▽ · (transitive, obsolete) To misunderstand (someone).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found