Closure vs. Prototype: Getting the best of both
DW
Di Wu
@dwu185
Technical level: Intermediate
There are two general approaches for defining objects in JavaScript: closure approach and prototype approach. This 4-min lightning talk will go over the characteristics of each approach. Then we’ll discuss forthcoming TC39 proposal which extends ES6 class, and hence combines the best qualities from each.
Outline
- Introducing the two approaches
- Introducing TC39 Proposal on Privacy
- Do we ever need to use closure approach?
- Wrap up with conclusion
Speaker bio
Software Engineer in Instance Messaging Team of Bloomberg L.P.
{{ errorMsg }}