/**
 * A prototype to create Weekday objects
 */
  function Weekday (name, traffic) {
        this.name = name;
        this.traffic = traffic;
    }
//function to return the day that has the most traffic.
function mostPopularDays(week) {
    // IMPLEMENT THIS FUNCTION!
}
//this is my input
var a = new Weekday('mon',123); var b = new Weekday('tues', 134) ; var c = new Weekday('wed', 233);
empty_me = []; 
empty_me.push(a ,b ,c);
mostPopularDays(empty_me);
// it should return the day with most traffic
//e.g wed
This code is collecting input as an array with objects embedded inside it... the function 'mostPopularDays' should return a string of the name of the day with the most traffic or an array with the names of the days with the most traffic.
 
     
     
     
    