I'm a beginner and learning data structures and algorithms.
I came to know a new data structure called Map
.
I am confused why Map is created like this:
const countMap = new Map()
This is unlike other data structures like array where we simply write let array = [];
I searched about this Map syntax and found about constructors and instances etc
If I am correct then I heard about them in OOP. Now should I first learn OOP then continue DSA or what do you suggest?