key value array javascript map code example Example: javascript map ket to value m.set('color', 'red') m.set('age', 2)