Over the Moon


#1


https://www.codecademy.com/en/courses/close-the-super-makert/0/6?curriculum_id=506324b3a7dffd00020bf661#


the code is going through but it i giving me an error


// create a constructor for the StaffMember class
 function StaffMember(name,discountPecent) {
    this.name = name;
    this.discountPercent = discountPercent
};


var sally = new StaffMember("Sally",5);
var bob = new StaffMember("Bob",10);
var me = new StaffMember("Matias",50);
//Create a StaffMember for yourself called me


#2

discountPecent -> discountPe r cent


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.