6. Over The Moon


#1


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


The error message says "Oops, try again. There was a problem with your syntax."
I am not quite sure what is wrong. Does anyone know? Thank You! :slight_smile:


// create a constructor for the StaffMember class
function StaffMember(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("Abby",20);


#2

It also says there is an unexpected token which is "}"


#3

Got it!!! I was supposed to have semi-colons instead of commas. Duh!


#4

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