Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map()

const myMap = new Map();
let userid = 1314124141;

myMap.set('veri_' + userid, 1) // set
myMap.set('veri_' + userid, myMap.get('veri_' + userid) + 1) // push

console.log(myMap.get('veri_' + userid)) // output: 3
Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+1 =