Skip to content

Comparisons with the Logical Or Operator #7563

Closed
hadyanzon opened this Issue · 3 comments

4 participants

@hadyanzon

Challenge Comparisons with the Logical Or Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function myTest(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
myTest(10);

I think this right answer please help me if wrongyou can give me clue solve this challege

@drk7891

Your if statement should be checking if val is not between 10 and 20

Please check out the help channel on gitter at https://gitter.im/FreeCodeCamp/FreeCodeCamp before posting here as this is for bugs

@cannelflow

instruction says if val is not between 10 and 20, means number leas then 10 or number greater then 20 and you are checking number between 10 to 20 Please use FCC chat room https://gitter.im/FreeCodeCamp/Help Before posting Here

@raisedadead
Free Code Camp member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.