Asked 7 years ago
14 Jan 2017
Views 1271
jaydeep

jaydeep posted

what is Map in JavaScript ?


var smap= new Map();

what is Map() in JavaScript ?
what is use of Map() ?
in JavaScript , how can Map() be useful ?
Rasi

Rasi
answered Nov 30 '-1 00:00

Map() is object which have key / value pair

var map = new Map();
map .set(1,{"r":"a"})

Post Answer