Ad
  • Custom User Avatar

    Dang! I could have saved a lot of code if I'd known about (frequencies)!

  • Custom User Avatar

    I've got it returning the right outputs for the example tests, but it's not passing the fourth test because the NaN I'm giving it isn't equal to the NaN it's expecting. I've tried returning NaN, and I've tried filtering the array to return the NaN from the array and neither works.

    I get that NaN !== NaN, but does that mean it's fundamentally impossible to pass the test?