Skip to content

Manage your team effortlessly with this lightweight JavaScript program. Add new employees and their positions to an existing Map, providing a clear overview of your team's structure.

Notifications You must be signed in to change notification settings

Yourmix0x/SololearnES6-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ES6 Map

Five employees at a company are stored in Map in the program you are given. Their names are set as keys and their positions as values. The company is hiring one more employee. The program should take the name and the position as inputs and store them in the existing map. Complete the program to perform that operation and output to the console the list of employees in the format shown in the sample output.

Sample Input

Bob Developer

Sample Output

Richard : Developer Maria : SEO Specialist Tom : Product Manager David : Accountant Sophia : HR Manager Bob : Developer

Note

The entries() method returns an Iterator of array[key, value] in the map for each element. Don't forget to put spaces before and after the colon (:) in the output.

About

Manage your team effortlessly with this lightweight JavaScript program. Add new employees and their positions to an existing Map, providing a clear overview of your team's structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published