6. Over The Moon



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) {

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);


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


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


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