/* * Using array destructuring, fix the following code to print the keys and values of the `members` Map to the console. */ const members = new Map(); members.set('Evelyn', 75.68); members.set('Liam', 20.16); members.set('Sophia', 0); members.set('Marcus', 10.25); for (const member of members) { console.log(member[0],member[1]); // console.log(key, value); }
console.log(member[0],member[1])是不行的
牛奶老哥哥
相关分类