Open In App

JavaScript Map values() Method

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
1 Like
Like
Report

The JavaScript map.values() method is used to return a new Iterator object that contains the value of each element present in Map. The order of the values are in the same order that they were inserted into the map.

Syntax:

myMap.values()

Parameters:

  • This method does not accept any parameters.

Example 1:

Output :

India
England
Canada

Example 2:

Output:

India
England
Canada
Russia

Supported Browsers:

  • Chrome 38
  • Edge 12
  • Firefox 19
  • Opera 25
  • Safari 8

Similar Reads