Answer the question
In order to leave comments, you need to log in
Why does a Map object return different results with different notations?
There is this code:
let sq = new Map();
sq.set('name', 'value')
.set('name2', 'value2')
console.log(`
${sq}
`)
[object Map]
Map(2) {"name" => "value", "name2" => "value2"}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question