6. Over the Moon


#1

It says syntax error...unexpected token (


StaffMember: function(name,discountPercent) {
    this.name = name;
    this.discountPercent = discountPercent;
};

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

var me = new StaffMember("Güry", 20);


#2

nvm i know already what went wrong


#3

you made a method rather then an object constructor.

Make sure not to post to quickly on the forum


#4

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