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

文字描述错误 #41

Closed
cxmSevenlaps opened this issue Nov 4, 2016 · 2 comments
Closed

文字描述错误 #41

cxmSevenlaps opened this issue Nov 4, 2016 · 2 comments

Comments

@cxmSevenlaps
Copy link

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

“只有当num大于等于5或小于等于10时,函数返回"Yes"。”这句话中的描述应该是:num小于等于5或者大于等于10.

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

@discountry
Copy link
Contributor

请仔细看代码逻辑

@AzhengTsai
Copy link

AzhengTsai commented Apr 15, 2017

這題文字教學怎麼看起來怪怪的

只有当num大于等于5或小于等于10时,函数返回"Yes"。相同的逻辑可以简写成:
if (num > 10 || num < 5) {
return "No";
}
return "Yes";

應該要說成 只有当num大于等于5"而且"小于等于10时,函数返回"Yes"
才能跟舉例的判斷式吻合

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

3 participants