- A true
- B false
- C "true"
- D "false"
- Share this MCQ
Answer:
A
Share this MCQ
The Map
data type in JavaScript is a constructor that creates a new map object, which is a collection of key-value pairs.
The Map
constructor creates a new map object when it is called using the new keyword.
In this case, a new map object is created using the Map
constructor, and is assigned to the variable map.
The instanceof
operator is called on map, with Map
as the right operand.
Since map is an instance of the Map
constructor, the instanceof
operator will return true.
Share this MCQ