+ 1

keys() not defined?

In section ES6 maps lesson 62.1 try-it codes get the error (down as this Question) when trying to use the keys() method on a Map object. Written after defining map. console.log (keys.map);

6th Feb 2022, 9:55 PM
Christine Jump
Christine Jump - avatar
1 Respuesta
+ 5
// try this for (let k of map.keys()) console.log(k);
6th Feb 2022, 10:26 PM
SoloProg
SoloProg - avatar