Problem with Exercise Tracker project

Tell us what’s happening:
Describe your issue in detail here.
I’m trying to pass the Exercise Tracker project tests.
The fourth test is about the ability to post new exercises. As much as I compare my returned results with what the sample project returns, I don’t see any difference.
It’s frustrating since I really don’t know what the problem with my returned objects is.

Your project link(s)

solution: https://replit.com/@alirezaghey/fccexercisetracker

The above link can be run by clicking the play button. The code is also accessible.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 OPR/76.0.4017.177

Challenge: Exercise Tracker

Link to the challenge:

Very likely you’re not returning the date in the correct format FCC tests want. You return

user id
user name
exercise description
exercise duration
exercise date (in format Mon Jun 07 2021)

You can change your code

user.date = exercise.date.replace(",", "");

to

user.date = exercise.date.toDateString();

and see what happens.

Make sure your date is the correct format and also that the duration is a number.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.