Question: plz answer all 4 question. plz do not take this assignment if you don't know the answer. thanks in advance. Question 11 What is wrong




Question 11 What is wrong with the following code? var roster = { students: { givenName: "Philip", surname: "Robi { givenName: "Mariposa", surname: "Her sortBySurname: function(descendingOrder) { this.students sort(function(a,b){ if (a.surname > b.surname) { return descendingOrder ? 1: -1; if (a.surname
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
