ES2022: Class Private Fields and Methods

preview_player
Показать описание
In todays tutorial we are going to tackle one of the new features of JavaScript that has to do with classes. ECMAScript 2022 has provided class field declarations and private methods and fields, which makes creating private data much easier.

Would you like to help keep this channel going?

Tutorials referred to in this video:

For more resources on JavaScript:

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

This is the reason why I love JavaScript. It makes our life easier :)

TheKulinos
Автор

Great explanation of this new ES2022 feature. It’s always a happy day when you release a new video! Thank you 🙏

TillmanTech
Автор

How are you? It was a long gap.I am always wait for your tutorial.

abujafarsiddique
Автор

Amazing. Missing you my friend. Long time.

polliluiz
Автор

Steve, how does this work under the hood though? It seems to me that the private props are not defined in the prototype property of a function, but on the function itself... But then, that would be static properties... So what am I missing here pls.

zbjptid
Автор

I find it funny, instead of going with the obvious private keyword, let's be different, cool and hip and confuse everyone with # and we are going to make you type it each time you want to use it. I would have accepted just a # when being declared, I think the continual typing of it is a bit much and unnecessary imo

apextek