Ad
  • Custom User Avatar

    The description is just a movie reference. There are no clear directions. Have you read or tried this kata?

  • Custom User Avatar

    And why you say that? Any reasons?

  • Custom User Avatar

    Well, you wrote:

    Mine passed all my tests in chrome, but failed the tests on this site.

    Which led me to conclusion that you need help with your solution. Apparently, you didn't.

  • Custom User Avatar

    Look, I told you why your solution does not work. I agree that it is somewhat weirdly explained in the description of this kata, but this is how it is: your function must accept JavaScript Date() object as the argument, and not an arbitrary string representation of the date. If you want to solve this kata, you have to parse the Date() object that your function received.

    Your solution must return the correct output for this:

    var date = new Date(1964, 10, 13);
    console.log(solution(date));
    
  • Custom User Avatar

    The input is a Date() object (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date), not a string of MM/DD/YYYY format. This is probably the reason why your solution fails.