For this Question: Write a class named <code>School</code> and add the following:
1)A Constructor which instantiates an empty student array
2)A method named <code>add</code> to push students to the array
3)A get method named <code>latest</code> which returns the last student added to the listThe input contains only one line i. e list of students separated by whitespaceOutput the latest student enrolled(i. e the last student to join)Input:
galaxy newton john alex

Output:
alex, I have written this Solution Code: class School {
  constructor(){
   this._students = [];
   }
  add(student){
      this._students.push(student)
  }
 get latest(){
   let strength = this._students.length;
   return strength ===0? null: this._students[strength-1]
  }
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?