
Map data structure & ES6 map object - Beau teaches JavaScript
video description
Date: 2022-03-14
Related videos
Comments and reviews: 8
Aleksandr
So, the benefit of Map is that you can use key not only String or Symbol. But in your example you use Object as as collection to store key:value. It's wrong implementation. You need to use array as collection with item -key: key, value: value-
reply
So, the benefit of Map is that you can use key not only String or Symbol. But in your example you use Object as as collection to store key:value. It's wrong implementation. You need to use array as collection with item -key: key, value: value-
reply
Seth
This is entirely incorrect. A map is not a javascript object. You would not, for example, be able to use a function as a key in your implementation. This is a very naive and very wrong tutorial. You should take this video down.
reply
This is entirely incorrect. A map is not a javascript object. You would not, for example, be able to use a function as a key in your implementation. This is a very naive and very wrong tutorial. You should take this video down.
reply
Good
Very good explanation. Thank you teacher.
There might be one issue. It is the count++ in set method.
If we add item with existing key, it should not increment the count.
My CA$ 0.02. ;)
reply
Very good explanation. Thank you teacher.
There might be one issue. It is the count++ in set method.
If we add item with existing key, it should not increment the count.
My CA$ 0.02. ;)
reply
Antonio
Hello, why do you make a size function (the one that returns the variable count), can't you just call the variable count directly?
don't myObj.count and myObj.size() return the same value?
reply
Hello, why do you make a size function (the one that returns the variable count), can't you just call the variable count directly?
don't myObj.count and myObj.size() return the same value?
reply
grantpant2353
Your typing speed literally makes my head spin. I don't think I can even make my fingers moves that fast. You're an android, aren't you?
reply
Your typing speed literally makes my head spin. I don't think I can even make my fingers moves that fast. You're an android, aren't you?
reply
anant
Couldn't understand a single thing after watching it thrice. Rushing through the code without explaining anything. By far the worst explanation.
reply
Couldn't understand a single thing after watching it thrice. Rushing through the code without explaining anything. By far the worst explanation.
reply
James
These tutorials are excellent! The length is perfect and seeing a new concept or an old one in a different context is so useful. Thanks!
reply
These tutorials are excellent! The length is perfect and seeing a new concept or an old one in a different context is so useful. Thanks!
reply
Rohan
I am facing problems for using these new syntax of ES6... can't remember syntax at the time of programming... what to do?
reply
I am facing problems for using these new syntax of ES6... can't remember syntax at the time of programming... what to do?
reply
Add a review, comment
Other channel videos















