Over the Moon


#1



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

SyntaxError: missing before statement. What's the problem with my code??


// create a constructor for the StaffMember class
var StaffMember = new Object(name, discountPercent){
    this.name = name;
    this.discountPercent = discountPercent;
    }

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


#2

This post was flagged by the community and is temporarily hidden.


#3

But still it generates that error message.


#4

This post was flagged by the community and is temporarily hidden.


#5


#6

This post was flagged by the community and is temporarily hidden.


#7

Oh.Lot of thanks. Now it's working.......:unamused:


#10