Proxies (ES6) - Beau teaches JavaScript
Vložit
- čas přidán 16. 02. 2017
- Proxies are used in JavaScript ES6 to give objects custom behavior. One use is for data validation. Learn all about proxies in this video!
Code:
🔗 codepen.io/beaucarnes/pen/vgxR...
More info:
🔗 ponyfoo.com/articles/es6-prox...
🔗 developer.mozilla.org/en-US/d...
Beau Carnes on Twitter: / carnesbeau
⭐JavaScript Playlists⭐
▶JavaScript Basics: • JavaScript Basics Course
▶ES6: • ES6 - Beau teaches Jav...
▶Design Patterns: • Design Patterns - Beau...
▶Data Structures and Algorithms: • Data Structures and Al...
▶Clean Code: • Clean Code - Beau teac...
-
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.
Join our community at freecodecamp.com
Follow us on twitter: / freecodecamp
Like us on Facebook: / freecodecamp
Follow Quincy on Quora: www.quora.com/Quincy-Larson
A really easy to understand video. After reading the documentation on MDN, I thought that is something a little more complex than I thought but after watching your video it really cleared a lot of misconceptions for me. Thank you !
Good explanation with examples! Thank you!
mann, i finally get it! thank you!
What's the benefit over regular setter and getter methods?
What happens when you return false?
many thanks
no need to take out the '=' from code .. cause if age=0 or les than 0 should say "mast be positive". Now that you took it off , if you give person.age = 0; is accepting it ...
Michael Mavroforakis And so what?...Why a person can't have 0 years?