Over the Moon help


I keep getting a syntax error for this (‘expected identifier’) and I just can’t see where I am going wrong. Can anyone help? Thanks!

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

var sally = new StaffMember("Sally",5);
var bob = new StaffMember("Bob",10);

//Create a StaffMember for yourself called me
var me = new StaffMember("me", 20);


Hi you should remove the ' ' around your argument

var StaffMember = function('name', 'discountPercent')


Thanks! Keep getting confused with when to use ’ ’