Map data structure & ES6 map object - Beau teaches JavaScript

preview_player
Показать описание
Maps are data structures that store key-value pairs. See how they work and learn about the ES6 map object.

⭐JavaScript Playlists⭐

-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Рекомендации по теме
Комментарии
Автор

Correction @ 4:28
map.entries() - returns keys + entries
map.keys() - returns keys

MrRight
Автор

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!

jamster
Автор

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}

sassmailsas
Автор

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. ;)

goodwish
Автор

Man you are amazing at explaining this stuff

crashito_x
Автор

I am facing problems for using these new syntax of ES6... can't remember syntax at the time of programming... what to do?

admiralrohan
Автор

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?

TonyJPG
Автор

Maps are useful for practical programming and Competitive programming alike.

core_dump
Автор

Watch 2x speed but we about 40-50 videos a week.

Jordanistheonlyholywaterriver
Автор

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?

grantpant
Автор

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.

sethkoch
Автор

Couldn't understand a single thing after watching it thrice. Rushing through the code without explaining anything. By far the worst explanation.

anantvarma
visit shbcf.ru