User:EstherLoer/Failedpassed (Internet meme)

    From Wikipedia, the free encyclopedia

    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 bogus computer program printed the phrase:

    You FAILEDPASSED the exam.

    The mathematical operators of the program was 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.[1]. The following day, it was posted to the major subreddit /r/Funny, where it was upvoted over 20,000 times.[2]

    Source code[edit]

    This is the source code of the return statement remade in 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;
    }
    

    Syntax: score, required score, unit of the score. Example: failedpassed(85,85,"%").


    References[edit]


    category:Internet memes