map-> map is simply a data structure which it stores key-value pair, types are strict here, no nesting herestruct-> user defined data structure where you have freedom to define your data with diff types easily used almost everywhere in production, nested properties
- when you are not aware of types properly and does't matter really you can use
mapotherwise you have to usestruct
- i guess its a boolean value which returns true or false wheather this key exists or not
- when you working on real backend system struct are beast for that like first of all you know what data you have defined of what type really accurate and you have clean formatt too