X = Number of Successes
Y = Number of Failures<p>if(X>Y){
alert("Take more chances, be bold.");
}
else{
alert("Keep it up!");
}<p>True or False? Or just commenting is of course ok :)
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 :)
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>Y, with a statement that says "Don't be afraid to fail."<p>But that's just me.
"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.