Tell us what’s happening:
Greetings.
I was having trouble with Date datatype for mongodb, so I saved the date as unix timestamp and perform conversion whenever I have to display. My code fails all tests that involve handling date(except last one as I havent implemented it yet), although my output does matches the requirement.
Great help! thank you. I have successfully finished this project.
But I have a doubt. While debugging, I used 2 different statements.
if(data!=null)
if(data.exercise.length>0)
where data is object received in callback function.
Although both evaluated to true during debugging, I got test timed out with statement 1 but not with statement 2.
What could be the reason? Or is there something else?