diff --git a/README.md b/README.md index be5d6244..9e73994d 100644 --- a/README.md +++ b/README.md @@ -440,10 +440,14 @@ function showEmployeeList(employees) { const expectedSalary = employee.calculateExpectedSalary(); const experience = employee.getExperience(); - let portfolio = employee.getGithubLink(); - - if (employee.type === 'manager') { - portfolio = employee.getMBAProjects(); + let portfolio; + switch (employee.type) { + case 'manager': + portfolio = employee.getMBAProjects(); + break; + case 'developer': + portfolio = employee.getGithubLink(); + break; } const data = {