Maps can be created in different ways based upon our requirement and nature of the Map. We have different syntax depending upon whether the Map is mutable or immutable.
Syntax :
// Immutable
variable = Map(key_1 -> value_1, key_2 -> value_2,
key_3 -> value_3, ....)
// Mutable
variable = scala.collection.mutable.Map(key_1 -> value_1,
key_2 -> value_2, key_3 -> value_3, ....)