How to use Proxy Objects - JavaScript Tutorial

preview_player
Показать описание
In this video tutorial I'll be showing you how to use JavaScript proxy objects. Proxy objects act as a layer between operations on an object and allow you to define custom behavior or perform validation (setters/getters etc.)

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

I barely understand English, but your way of explaining the Proxy API is by far the best I've found

ricardopassos
Автор

I was having a hard time understanding proxies, your explanation really helped thanks :)

luisdwq
Автор

Awesome, easy and clear. Thank you for the video!

licokr
Автор

Thank you so much. You're channel is being very helpful on couple topics for me. Subbed + liked

Dan-pf
Автор

What are some of the good uses for it? As far as I can think of is default configurations for your app, e.g. default Express configurations like ports, etc. defined in a JSON format.

VladdyHell
Автор

I wrote exactly like you did but it gives an error
Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'difficulty' on line 309

dangerdoctor
Автор

METATABLES IN JAVASCRIPT!!! HECK YEAHHHH

gamerintykat
Автор

Very nice video. Btw, which font is this?

rafaelmrantunes
Автор

Where to store secrets?
like a keys.js file?, ideal / best practices?

For production mostly

FordExplorer-rmew
Автор

why not just use class with private fields?

troooooper
welcome to shbcf.ru