Over the Moon



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


discountPecent -> discountPe r cent


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