Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''''Failedpassed''''' is a term which gained popularity over an [[internet meme]] on [[Reddit]].
- It jokingly describes a situation in which a task or action was completed in an unsatisfactory way.
- It gained popularity over a [[Reddit]] meme in which a [[computer bug|bogus]] [[computer program]] printed the phrase:
- {{quote|You FAILEDPASSED the exam.}}
- The [[operation (mathematics)|mathematical operators]] of the program was [[operator (computer programming)|designed]] in a way to print the word ''passed'' with a test score [[greater than or equal to]] 85%, and ''failed'' if [[less than or equal to]] 85%.
- Because the test score has been exactly 85%, both conditions were fulfilled, thus both words printed.
- The earliest discoverable Reddit post scored 230 votes (upvotes subtracted by downvotes) and dates back to March 21, 2019, on the "software gore" [[subreddit]].<ref>[https://www.reddit.com/r/softwaregore/comments/b3ljqd/son_how_was_yor_day_at_school_good_and_bad_too/ "Son, how was yor day at school? - Good. And bad too", /u/willianw in /r/SoftwareGore on March 21, 2019]</ref>. The following day, it was posted to the major subreddit /r/Funny, where it was upvoted over 20,000 times.<ref>[https://old.reddit.com/r/funny/comments/b44zoi/i_am_happysad/ "I am HAPPYSAD" - /user/Hyper00hubert in /r/Funny on March 22, 2019]</ref>
- == Source code ==
- This is the source code of the return statement remade in JavaScript:
- <syntaxhighlight lang=JavaScript>
- failedpassed_data = {}; // initialize data object
- function failedpassed(score,required_score,score_unit) {
- // handle unspecified unit or add trailing space
- if (score_unit == undefined) score_unit=""; else score_unit=" "+score_unit;
- // initialize return string
- failedpassed_data.returnString = "";
- // add "FAILED" and/or "PASSED" to return message.
- if (score <= required_score) failedpassed_data.returnString += "FAILED";
- if (score >= required_score) failedpassed_data.returnString += "PASSED";
- return "Your Score "+score+score_unit+"\n\nYou "+failedpassed_data.returnString+" the Exam.\n\nRequired Score "+required_score+score_unit;
- }
- </syntaxhighlight>
- Syntax: score, required score, unit of the score. Example: <code>failedpassed(85,85,"%")</code>.
- == References ==
- <references />
- [[:category:Internet memes]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement