Question: Very Very Urgent Please Help!!!! Please write the javascript code as per the instructions for the following functions: getEAs() This function will provide an array

Very Very Urgent Please Help!!!!

Please write the javascript code as per the instructions for the following functions:

getEAs()

This function will provide an array of "employee" objects whose EA property is true using the resolve method of the returned promise.

If for some reason, the length of the array is 0 (no results returned), this function must invoke the reject method and pass a meaningful message, ie: "no results returned".

getClasses()

This function will provide the full array of "class" objects using the resolve method of the returned promise.

If for some reason, the length of the array is 0 (no results returned), this function must invoke the reject method and pass a meaningful message, ie: "no results returned".

getPartTimers()

This function will provide an array of "employee" objects whose status property is Part Time using the resolve method of the returned promise.

If for some reason, the length of the array is 0 (no results returned), this function must invoke the reject method and pass a meaningful message, ie: "no results returned".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!