Whats wrong Over The Moon


#1

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

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

//Create a StaffMember for yourself called me
var me = new StaffMember("John",20);


#2

please post your full code


#3

that is the full code for the asked qn


#4

function StaffMember(name,discountPercent) = {

why is there a equal sign in this line?


#5

omg yes, thanks once agin


#6