Using WeakMaps to prevent direct access to an object's properties

User is asked to create method addEmployees, but the answer only accepts addEmployee.

" Add the getEmployees and addEmployees methods to the Hotel class."

Thanks Richard! We’ve just updated this task to ask the user to create an addEmployee method.

This topic was automatically closed after 27 days. New replies are no longer allowed.