I dont know why my project doesnt pass test 4 and 5 even though it is working as it is supposed to. would be helpful if someone could look into the code and help me. thanks! https://mulberry-sixth-papyrus.glitch.me
You are passing duration as a string in your response. It isn’t explained anywhere AFAIK but it should be a number. Also your date is not what is expected. It should look like this (I think) “Mon Jun 22 2020”. Look for a method on the Date object which returns a string like that.
By the way, the title of your post says you are having trouble with test 4-5 but the content says test 3 and 4. Let us know which.