A JavaScript program which checks if an employee is promoted or not.