I'm trying to pass this simple test for an assignment and I'm having trouble figuring out how to right the constructor function for it,
describe("Student", function(){
  var student;
  beforeEach(function(){
    student = new Student({firstName: "Lysette", scores: [100, 100, 100, 4, 100]});
  });
  describe("name", function() {
    it("has a first name", function() {
      expect(student.firstName).toEqual("Lysette");
    });
  });
I've tried this, but it doesn't seem to be working:
var Student = function (firstName, scores){
  this.firstName = firstName;
  this.scores = scores;
};
Any Solutions?
 
     
     
     
    