Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"25 or More" is wrong ,but I can't fix it. #638

Open
Glenn-Guo opened this issue Sep 5, 2019 · 1 comment
Open

"25 or More" is wrong ,but I can't fix it. #638

Glenn-Guo opened this issue Sep 5, 2019 · 1 comment

Comments

@Glenn-Guo
Copy link

Challenge Comparison with the Less Than Or Equal To Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3730.400 QQBrowser/10.5.3805.400.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function myTest(val) {
  if (val <= 12) {  // 请修改这一行
    return "Smaller Than or Equal to 12";
  }
  
  if (val<= 24) {  // 请修改这一行
    return "Smaller Than or Equal to 24";
  }

  return "25 or More";
}

// 你可以修改这一行来测试你的代码
myTest(24.5);
@Glenn-Guo
Copy link
Author

Maybe it should be changed to “Over 24”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant