logo

Crowdly

Add the specified function that executes the registration. It m...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Add the specified function that

executes the

registration.

It must  

  • add a registrationDate

    to the good

    thing registration object

  • register the good thing object in

    the database,

  • compute and return the response

    object, that in addition to the registered object, includes a field storing the

    goodthingsCount of good things now registered at the registration date.

Hint:

There is a helper function to check whether

two dates are the same date.  You need to filter the database for matching username and date pairs.

Hint:

A new date can be created

using the constructor function

Date (see[DF 11.4] )

Remark: For this exercise, use the Date object as per your text book, but remark that Javascript has since been updated with a new ”Temporal” object that should replace Date in future real applications.

More questions like this

Want instant access to all verified answers on www.moodle.aau.dk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!