Quiz · Map, Set and JSON · lesson 2 of 9Quiz — Map and an objectWhat is a Map, and what makes it different from a plain object for storing key–value pairs?[A]A Map stores pairs whose keys can be any value — numbers and objects too. Unlike a plain object, it keeps no order: for…of may give its pairs back in any order. It has a size and is used through get, set, has and delete.[B]A Map stores key–value pairs whose keys can be any value — numbers and objects too, not only strings as in a plain object. It keeps the order keys were added in, has a size, and is used through get, set, has and delete.[C]Like a plain object, a Map turns every key into a string, so map.set(1, "a") and map.set("1", "b") write to the same key. It keeps the order keys were added in, has a size, and is used through get, set, has and delete.[D]A Map stores pairs whose keys can be any value — numbers and objects too. It keeps the order keys were added in and has a size, but you read and write it with square brackets, map[key] = value, like a plain object.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackThe Map collectionNext →The Set collection