Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createListOfEmployees(input) {
- let list = {};
- for(let employee of input) {
- list[employee] = employee.length;
- }
- for (let [employeeName, employeeNum] of Object.entries(list)) {
- console.log(` Name: ${employeeName} -- Personal Number: ${employeeNum}`);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement