Symbols in JavaScript: how to use in real life?

  Рет қаралды 414

Alexey Horbunov | Frontend

Alexey Horbunov | Frontend

Күн бұрын

This video is about Symbols in JavaScript. A lot of frontend-developers don’t know what is Symbol in JavaScript and how it works. In this video I explain how Symbols in JS work, in which situation they will be useful and even how with symbols we can change behaviour of native JavaScript objects.
Follow me on:
- GitHub: github.com/Algoritm211
- LinkedIn: / horbunov
- Telegram Channel: t.me/world_of_frontend
Timecodes:
00:00 - Intro
00:30 - What is Symbol
01:37 - First symbol property
02:28 - Second symbol property
06:24 - Access to symbol property in object
07:55 - Symbol Iterator
12:41 - Symbols recap
#javascript #development #programming #progress #frontend #symbols #interview #personaldevelopment

Пікірлер: 7
@scb-spacecryptobubbles7741
@scb-spacecryptobubbles7741 10 ай бұрын
Amazing work you did!
@user-qs4fb3xp6v
@user-qs4fb3xp6v 9 ай бұрын
👍
@flyingbutter6759
@flyingbutter6759 10 ай бұрын
That’s amazing, I will watch your video 7.5 times and I will report it, thank you
@rost-st
@rost-st 10 ай бұрын
Nice!
@alexey_horbunov
@alexey_horbunov 10 ай бұрын
Thanks)
@TimFedorchuk
@TimFedorchuk 10 ай бұрын
Wow, thanks for the video! Interesting topic. Are there any other useful properties like "Symbol.iterator"? Maybe something you personally recommend or use on a daily basis?
@alexey_horbunov
@alexey_horbunov 10 ай бұрын
Thank you for the comment. Hmm, what I would recommend to acquire is Symbol.asyncIterator for an overriding of iterating through async objects - developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator . Also Symbol.isConcatSpreadable which may help you override merging objects - developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable. And the interesting symbol is Symbol.toPrimitive, which can override default behaviour of transforming objects to primitives - developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive
One mistake with fetch API I always make
7:29
Alexey Horbunov | Frontend
Рет қаралды 40
4 MUST Know JavaScript Array Methods
9:46
Alexey Horbunov | Frontend
Рет қаралды 6 М.
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 48 МЛН
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 76 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,4 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 119 МЛН
What Is Your Kubernetes Experience
16:02
TS4U
Рет қаралды 3
MAANG interview question - LRU Cache. Implementation and explanation
12:00
Alexey Horbunov | Frontend
Рет қаралды 133
Find Symmetric Pairs - Frontend Interview Preparation
9:02
Alexey Horbunov | Frontend
Рет қаралды 127
Implement Deep Equal function - Frontend interview preparation
10:23
Alexey Horbunov | Frontend
Рет қаралды 96
Reaching 1000 Subscribers. 🎁 MY GIFT TO YOU and about my YouTube Journey
5:02
Alexey Horbunov | Frontend
Рет қаралды 103
What are pure functions and why you SHOULD use them
11:03
Alexey Horbunov | Frontend
Рет қаралды 225
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 48 МЛН