Exercise tracker - Q4 response format

Tell us what’s happening:
Describe your issue in detail here.
Hey, I have returned userobject + exercise object and could not pass it.
e.g. { _id: 6109dfe036f88a0041457852, username: ‘Jason’, __v: 0 }{ _id: 6109e0b036f88a0041457857, id: ‘6109dfe036f88a0041457852’, description: ‘exercise 2’, duration: 6000, date: 2021-08-03T00:00:00.000Z, __v: 0 }

plz help.

Your project link(s)

solution: https://replit.com/@jasonlee23/boilerplate-project-exercisetracker

Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

From the tests: “The response returned will be the user object with the exercise fields added.” This translates to

  "username": <your username>,
  "_id": <your user id>,
  "description": <your description>,
  "duration": <your duration as an **integer**>,
  "date": <date formatted like 'Mon Jan 01 1990'>

You don’t have to store it this way.

Thanks Jeremy,
I could have it passed after date formatting.


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