You Deserved It!


I get the message: 'Your bill is 13.74' (which checks out OK as 20% off) in the console but a message of 'Oops, try again. false' pops up.

Probably something really obvious I know...

  // Create a new method applyStaffDiscount here
    applyStaffDis: function(employee) { -= * (employee.discountPercent / 100); 

// Apply your staff discount by passing the 'me' object 
// to applyStaffDiscount

// Show the total bill
console.log('Your bill is ';


i haven't seen it with this method, but with other methods inside the cash register you don't have the liberty to name the methods anything you like.

use the method name provided by the exercise


Ah. Didn't even realise I'd abbreviated that. Thanks.