Company: Cvent Full stack developer experience 5 years_12may
Difficulty: medium
Data of N students denoting student name, scores, city, and state is given. Write a Javascript function processStudentData that takes an array of student objects and prints an object with the following properties: totalStudents: Total number of students. averageScores: Array of average scores for each subject across all students. uniqueCities: Array of unique cities where students reside. studentsFromState: Object where each key is a state and the value is an array of student names from that state. Note Round off the average score at 2 decimal places. Function Description In the provided code snippet, implement the provided processStudentData(...) method using the variables to get the new object which is formed by performing the task. You can write your code in the space below the phrase "WRITE YOUR LOGIC HERE". There will be multiple test cases running so the Input and Output should match exactly as provided. The base Output variable result is set to a default value of -404 which can