Employee Role
Expected Behaviour
Your function should have two parameters: employeeName
(string) and employees
(array).
Given an array of employees
, and an employeeName
, you should find and return that person's role
in the company.
E.g.
If we have the following employees:
When calling the getEmployerRole
function like so:
We would expect a return value of:
Assertion
- returns the employee's role in the company
Run tests
Finished the katas?
Send your code for review by posting a link to your github repo in the cohort channel!