for the Julian calendar, given that the Gregorian calendar did not exist until 1582. My solution didn't work until I adapted it to calculate based on the Gregorian calendar, at which point everything passed.
Might want to explicitly state that. This is a coding exercise, not a history lesson, but it was a point of confusion for me. Thanks for the kata!
You figured it out John, congratulations ;) It seems Codewars recently made some changes to their JavaScript engine that broke this specific test. I have adapted the test now; if you try again it should work.
looks like u solved it
This comment is hidden because it contains spoiler information about the solution
Very true! Thanks for the note.
You don't need to convert your switch cases to explicit boolean values. You already have them.
I thought this kata was calling for the coder to implement Zeller's congruence:
https://en.wikipedia.org/wiki/Zeller%27s_congruence
for the Julian calendar, given that the Gregorian calendar did not exist until 1582. My solution didn't work until I adapted it to calculate based on the Gregorian calendar, at which point everything passed.
Might want to explicitly state that. This is a coding exercise, not a history lesson, but it was a point of confusion for me. Thanks for the kata!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
smart!
This comment is hidden because it contains spoiler information about the solution
You figured it out John, congratulations ;) It seems Codewars recently made some changes to their JavaScript engine that broke this specific test. I have adapted the test now; if you try again it should work.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution