Bug - Building a Cash Register #6 Over The Moon(Javascript)

If you do not capitalize the first letter of the object constructor, and not capitalize the new object constructor (staffMember). You can pass the lesson successfully.

var 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('me',20);

It does throw an error, but still lets you complete that lesson.