TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

X = Number of Successes, Y = Number of Failures

12 点作者 aashaykumar92大约 12 年前
X = Number of Successes Y = Number of Failures<p>if(X&#62;Y){ alert("Take more chances, be bold."); } else{ alert("Keep it up!"); }<p>True or False? Or just commenting is of course ok :)

5 条评论

imwhimsical大约 12 年前
Shouldn't (technically) there be a prompt function there somewhere? I mean, how does the computer know how many successes/failures I've had? :P<p>Just kidding!<p>While the whole "failure is the stepping stone to success" thing is high these days, especially with startups, It doesn't work for me. Obviously teaches us a lot, but then again, failure is failure. Embrace it, acknowledge it, and move on. Just my 2 cents :)
caffeinewriter大约 12 年前
I'd add an elif (or else if, depending on if your language can handle that shorthand) checking the total number of X+Y, as well as if X&#62;Y, with a statement that says "Don't be afraid to fail."<p>But that's just me.
评论 #5523076 未加载
tpae大约 12 年前
You forgot the while statement
评论 #5522997 未加载
rmp2150大约 12 年前
Doesn't take into account the magnitude of successes or failures
评论 #5524048 未加载
Mz大约 12 年前
"Your unhappy customers are your greatest source of learning." -- Bill Gates<p>Success and failure are often simplistic and arbitrary judgement calls. It is common to just rejigger the numbers if you don't like what they say. So I am not sure how to engage you in meaningful and useful discussion on this topic. You haven't even really defined your terms and if you did I might fundamentally disagree with your definitions.
评论 #5523187 未加载