Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
Describe your issue in detail here.
I ran the code and there doesn’t seem to be anything wrong, but it doesn’t complete the exercise.
Your project link(s)

solution: boilerplate-project-exercisetracker - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

Look at the date property you are returning in the response.

Your response:

{
  _id: '64092dcd9c14a160e0fda225',
  username: 'fcc_test_16783231489',
  count: 1,
  log: [
    {
      date: 'Fou Mar 03 2023',
      duration: 60,
      description: 'test',
      _id: '64092dcd9c14a160e0fda227',
    },
  ],
  __v: 0,
};

Example response:

{
  username: "fcc_test",
  count: 1,
  _id: "5fb5853f734231456ccb3b05",
  log: [{
    description: "test",
    duration: 60,
    date: "Mon Jan 01 1990",
  }]
}

Why are you doing this?

const date = req.body.date ? `Mon Jan 01 1990` : `Fou Mar 03 2023`

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