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

"9 or Under" is wrong ,but I can't fix it. #639

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

"9 or Under" is wrong ,but I can't fix it. #639

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

Comments

@Glenn-Guo
Copy link

Challenge Comparison with the Greater 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 >= 20) {  // 请修改这一行
    return "20 or Over";
  }
  
  if (val >= 10) {  // 请修改这一行
    return "10 or Over";
  }

  return "9 or Under";
}

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

Maybe it should be changed to “Under 10”

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