Over the Moon

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/close-the-super-makert/0/6?curriculum_id=506324b3a7dffd00020bf661#

<In what way does your code behave incorrectly? Include ALL error messages.>

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

<do not remove the three backticks above>

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

But still it generates that error message.

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

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

2 Likes

Oh.Lot of thanks. Now it’s working…:unamused:

1 Like