6. Over the Moon


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


nvm i know already what went wrong


you made a method rather then an object constructor.

Make sure not to post to quickly on the forum


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