keys() not defined? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 5
// try this for (let k of map.keys()) console.log(k);
6th Feb 2022, 10:26 PM
SoloProg
SoloProg - avatar