Private and Public Class Fields (and Methods) in JavaScript

preview_player
Показать описание
JavaScript now supports private fields and methods, and class fields can be declared directly in the class. This video does a quick walkthrough of this new feature.
Рекомендации по теме
Комментарии
Автор

Been looking for good explanation about JavaScript private fields. Thanks for the video Rob

sergiolo
Автор

Thanks for the video. I think the explication was very clear. Greetings from Brazil !

eugeniolopes
Автор

This helps clear it up. My Javascript class doesn't explain about using the new Class operator. I'm used to having private and public fields and methods (C#, Java) but in Javascript it is not like that where everything is public unless you use the Class operator and #. Thanks again.

johnson
Автор

For anyone else who stumbles across this video and still doesn't understand it. You are not alone 😂

jackfrancis
Автор

I was thinking you just wanted to log #decorator inside the get #decoratedMessage

Seven-rkgn
welcome to shbcf.ru