Foo Bar? HAHA! anyone else?

Tell us what’s happening:

not help, but did anyone else pick up the Foo Bar (FUBAR) reference in the example haha!
good one

Your code so far

function orderMyLogic(val) {
  if (val < 10) {
    return "Less than 10";
  } else if (val < 5) {
    return "Less than 5";
  } else {
    return "Greater than or equal to 10";
  }
}

// Change this value to test
orderMyLogic(7);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/logical-order-in-if-else-statements

Yeah, foo and bar (and strangely baz) are common programming generic placeholder names. I often wonder how many people remember what “fubar” means and probably even fewer remember what it stands for.

2 Likes

Haha Its funny because it was relevant to that particular challenge.