Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

initialize a map js

let map = new Map()
map['bla'] = 'blaa'
map['bla2'] = 'blaaa2'

console.log(map)  // Map { bla: 'blaa', bla2: 'blaaa2' }
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #initialize #map #js
ADD COMMENT
Topic
Name
3+5 =