Question: Needs to be written in javascript! about array and object destructuring. An explanation if the code would be very helpful too! thank you Complete the
Needs to be written in javascript! about array and object destructuring. An explanation if the code would be very helpful too! thank you
Complete the function
status shown below:
const status = ({year, university, ...rest}) => {
//if the year is before 2020, print "pre Covid" and if the year is after 2021 print "post Covid"
//otherwise print "in Covid pandemic"
//if the university is usm then print "Hattiesburg", msu then print "Starkville", um then print
//"Oxford" (function continues in the next page)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
