An object called newMap is already created. It has numbers as keys and there are corresponding values associated with the keys. Your task is to iterate over the map and identify the keys that are divisible by 2. Once identified, log both the key and its corresponding value to the console.
Map
Get values
Report a typo
Sample Input 1:
Sample Output 1:
2 = Value-2
4 = Value-4Write a program in JavaScript
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.