Proxies (ES6) - Beau teaches JavaScript

Sdílet
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

Komentáře • 8

  • @popavandrei
    @popavandrei Před 8 měsíci +1

    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 !

  • @timnooteboom7752
    @timnooteboom7752 Před rokem +1

    Good explanation with examples! Thank you!

  • @Little.Queenie
    @Little.Queenie Před 5 měsíci

    mann, i finally get it! thank you!

  • @RoyRope
    @RoyRope Před 5 lety +2

    What's the benefit over regular setter and getter methods?

  • @zigzag9920
    @zigzag9920 Před 7 lety +1

    What happens when you return false?

  • @abdelkrimeljaouhari2370
    @abdelkrimeljaouhari2370 Před 5 měsíci

    many thanks

  • @michaelmavroforakis8881
    @michaelmavroforakis8881 Před 5 lety +1

    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 ...

    • @SSantiago90
      @SSantiago90 Před 5 lety

      Michael Mavroforakis And so what?...Why a person can't have 0 years?