SlideShare a Scribd company logo
1 of 34
Download to read offline
bobby | @mrbobbybryant #wcnash
Javascript Prototypal
Inheritance.
How its different, and why you need
to know it
Bobby Bryant
Bobby Bryant | @mrbobbybryant #wcnash
About Me
• Web Engineer at 10up
• Father of 3
• JavaScript Junkie
Bobby Bryant | @mrbobbybryant #wcnash
Why Cover such a
weird topic?
Bobby Bryant | @mrbobbybryant #wcnash
–Kyle Simpson @getify
“Where it takes a pretty in-depth knowledge of a
language like C or C++ to write a full-scale
program, full-scale production JavaScript can,
and often does, barely scratch the surface of
what the language can do.”
https://github.com/getify/You-Dont-Know-JS
Bobby Bryant | @mrbobbybryant #wcnash
Classical vs Prototypal
Inheritance
Bobby Bryant | @mrbobbybryant #wcnash
Classical Inheritance
• Allows you to create new objects using a class as a blueprint.
• A blueprint as a few characteristics that make it distinct.
• It implies that if you follow the instruction you will
successfully create your object.
• Class Based languages are built around the concept of:
• Building base classes.
• Extending the base classes to build a hierarchy of
inheritance.
Bobby Bryant | @mrbobbybryant #wcnash
Classical Inheritance
• Class Based languages are built around the
concept of:
• Building Base Classes.
• Extending the base classes to build a hierarchy of
inheritance.
Bobby Bryant | @mrbobbybryant #wcnash
Prototypal Inheritance
• A prototype is one step farther than a blueprint.
• It implies that you have a working version of
something.
• It not a contract that says if you follow these steps
you will have a working object.
• It implies that, “here is a working object, use it as is
or make copies if you want.”
Bobby Bryant | @mrbobbybryant #wcnash
How Does JavaScript
use these prototypes?
Bobby Bryant | @mrbobbybryant #wcnash
Bobby Bryant | @mrbobbybryant #wcnash
Lots of them
Bobby Bryant | @mrbobbybryant #wcnash
Understanding the
Prototype
Bobby Bryant | @mrbobbybryant #wcnash
Prototypal Inheritance
Bobby Bryant | @mrbobbybryant #wcnash
Prototypal Inheritance
Bobby Bryant | @mrbobbybryant #wcnash
Static Methods
Bobby Bryant | @mrbobbybryant #wcnash
Real World Example
Bobby Bryant | @mrbobbybryant #wcnash
Constructor
Bobby Bryant | @mrbobbybryant #wcnash
Extending a Prototype
Bobby Bryant | @mrbobbybryant #wcnash
Object Literal
Bobby Bryant | @mrbobbybryant #wcnash
Delegation
Bobby Bryant | @mrbobbybryant #wcnash
Delegation
Bobby Bryant | @mrbobbybryant #wcnash
Object Creation
Patterns
Bobby Bryant | @mrbobbybryant #wcnash
Object.create
Bobby Bryant | @mrbobbybryant #wcnash
Factory Function
Bobby Bryant | @mrbobbybryant #wcnash
Factory Fn #2
Bobby Bryant | @mrbobbybryant #wcnash
Composition vs
Inheritance
Bobby Bryant | @mrbobbybryant #wcnash
Currently in the larger JS world, there is actually
a completely different paradigm growing.
Functional Programming. And at its core
functional programming is about Composition
over Inheritance.
Bobby Bryant | @mrbobbybryant #wcnash
Object.assign
Bobby Bryant | @mrbobbybryant #wcnash
Object.assign
Bobby Bryant | @mrbobbybryant #wcnash
Composition
Bobby Bryant | @mrbobbybryant #wcnash
ES6 Classes
Bobby Bryant | @mrbobbybryant #wcnash
Is class syntax in ECMAScript 6 just a
syntactic sugar for classical prototypes?
https://www.quora.com/Is-class-syntax-in-ECMAScript-6-just-a-
syntactic-sugar-for-classical-prototypes
Bobby Bryant | @mrbobbybryant #wcnash
Delegation again
bobby | @mrbobbybryant #wcnash
Thank You!
I have a Javascript Problem.

More Related Content

Viewers also liked

The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionTorsten Landsiedel
 
What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?Takayuki Miyoshi
 
WordCamp Nashville 2016 Pamela Coyle/Content Connects
WordCamp Nashville 2016 Pamela Coyle/Content ConnectsWordCamp Nashville 2016 Pamela Coyle/Content Connects
WordCamp Nashville 2016 Pamela Coyle/Content ConnectsContent Connects, Nashville
 
WordCamp Nashville 2016 - In Case of Zombies
WordCamp Nashville 2016 - In Case of ZombiesWordCamp Nashville 2016 - In Case of Zombies
WordCamp Nashville 2016 - In Case of ZombiesKate Newbill
 
10 Things I Wish I'd Known About Freelancing
10 Things I Wish I'd Known About Freelancing10 Things I Wish I'd Known About Freelancing
10 Things I Wish I'd Known About FreelancingNathan Ingram
 
Nürnberg WordPress Meetup - Custom Post Types mit PODS.io
Nürnberg WordPress Meetup - Custom Post Types mit PODS.ioNürnberg WordPress Meetup - Custom Post Types mit PODS.io
Nürnberg WordPress Meetup - Custom Post Types mit PODS.iofrankstaude
 
WordCamp Manchester 2016 - Making WordPress Menus Smarter
WordCamp Manchester 2016 - Making WordPress Menus SmarterWordCamp Manchester 2016 - Making WordPress Menus Smarter
WordCamp Manchester 2016 - Making WordPress Menus SmarterJonny Allbut
 
State of the Word 2013
State of the Word 2013State of the Word 2013
State of the Word 2013photomatt
 
The Pitfalls of Working from Home and How to Avoid Them
The Pitfalls of Working from Home and How to Avoid ThemThe Pitfalls of Working from Home and How to Avoid Them
The Pitfalls of Working from Home and How to Avoid ThemAdam W. Warner
 
How WordPress Changed My Life! - Ricky Blacker
How WordPress Changed My Life! - Ricky BlackerHow WordPress Changed My Life! - Ricky Blacker
How WordPress Changed My Life! - Ricky BlackerWordCamp Sydney
 
Decisions, Not Options
Decisions, Not OptionsDecisions, Not Options
Decisions, Not OptionsCarrie Dils
 
Зачем вам нужен BuddyPress?
Зачем вам нужен BuddyPress?Зачем вам нужен BuddyPress?
Зачем вам нужен BuddyPress?Oleksandr Strikha
 
Creating a WordPress Website that Works from the Start
Creating a WordPress Website that Works from the StartCreating a WordPress Website that Works from the Start
Creating a WordPress Website that Works from the StartNile Flores
 
WordCamp Nashville 2016 "Imposter Syndrome'
WordCamp Nashville 2016   "Imposter Syndrome'WordCamp Nashville 2016   "Imposter Syndrome'
WordCamp Nashville 2016 "Imposter Syndrome'Beth Downey
 
Architecting an Highly Available and Scalable WordPress Site in AWS
Architecting an Highly Available and Scalable WordPress Site in AWS Architecting an Highly Available and Scalable WordPress Site in AWS
Architecting an Highly Available and Scalable WordPress Site in AWS Harish Ganesan
 
State of the Word 2016
State of the Word 2016State of the Word 2016
State of the Word 2016photomatt
 
Taming your content with custom post types and fields
Taming your content with custom post types and fieldsTaming your content with custom post types and fields
Taming your content with custom post types and fieldsCarolyn Jones
 
The power of a video library
The power of a video libraryThe power of a video library
The power of a video libraryLauren Jeffcoat
 
Architecture Behind WordPress.com
Architecture Behind WordPress.comArchitecture Behind WordPress.com
Architecture Behind WordPress.comphotomatt
 
Boston Ruby Meetup: The promise and peril of Agile and Lean practices
Boston Ruby Meetup: The promise and peril of Agile and Lean practicesBoston Ruby Meetup: The promise and peril of Agile and Lean practices
Boston Ruby Meetup: The promise and peril of Agile and Lean practicesmtoppa
 

Viewers also liked (20)

The Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano EditionThe Child Theme Dilemma (EN) - Milano Edition
The Child Theme Dilemma (EN) - Milano Edition
 
What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?
 
WordCamp Nashville 2016 Pamela Coyle/Content Connects
WordCamp Nashville 2016 Pamela Coyle/Content ConnectsWordCamp Nashville 2016 Pamela Coyle/Content Connects
WordCamp Nashville 2016 Pamela Coyle/Content Connects
 
WordCamp Nashville 2016 - In Case of Zombies
WordCamp Nashville 2016 - In Case of ZombiesWordCamp Nashville 2016 - In Case of Zombies
WordCamp Nashville 2016 - In Case of Zombies
 
10 Things I Wish I'd Known About Freelancing
10 Things I Wish I'd Known About Freelancing10 Things I Wish I'd Known About Freelancing
10 Things I Wish I'd Known About Freelancing
 
Nürnberg WordPress Meetup - Custom Post Types mit PODS.io
Nürnberg WordPress Meetup - Custom Post Types mit PODS.ioNürnberg WordPress Meetup - Custom Post Types mit PODS.io
Nürnberg WordPress Meetup - Custom Post Types mit PODS.io
 
WordCamp Manchester 2016 - Making WordPress Menus Smarter
WordCamp Manchester 2016 - Making WordPress Menus SmarterWordCamp Manchester 2016 - Making WordPress Menus Smarter
WordCamp Manchester 2016 - Making WordPress Menus Smarter
 
State of the Word 2013
State of the Word 2013State of the Word 2013
State of the Word 2013
 
The Pitfalls of Working from Home and How to Avoid Them
The Pitfalls of Working from Home and How to Avoid ThemThe Pitfalls of Working from Home and How to Avoid Them
The Pitfalls of Working from Home and How to Avoid Them
 
How WordPress Changed My Life! - Ricky Blacker
How WordPress Changed My Life! - Ricky BlackerHow WordPress Changed My Life! - Ricky Blacker
How WordPress Changed My Life! - Ricky Blacker
 
Decisions, Not Options
Decisions, Not OptionsDecisions, Not Options
Decisions, Not Options
 
Зачем вам нужен BuddyPress?
Зачем вам нужен BuddyPress?Зачем вам нужен BuddyPress?
Зачем вам нужен BuddyPress?
 
Creating a WordPress Website that Works from the Start
Creating a WordPress Website that Works from the StartCreating a WordPress Website that Works from the Start
Creating a WordPress Website that Works from the Start
 
WordCamp Nashville 2016 "Imposter Syndrome'
WordCamp Nashville 2016   "Imposter Syndrome'WordCamp Nashville 2016   "Imposter Syndrome'
WordCamp Nashville 2016 "Imposter Syndrome'
 
Architecting an Highly Available and Scalable WordPress Site in AWS
Architecting an Highly Available and Scalable WordPress Site in AWS Architecting an Highly Available and Scalable WordPress Site in AWS
Architecting an Highly Available and Scalable WordPress Site in AWS
 
State of the Word 2016
State of the Word 2016State of the Word 2016
State of the Word 2016
 
Taming your content with custom post types and fields
Taming your content with custom post types and fieldsTaming your content with custom post types and fields
Taming your content with custom post types and fields
 
The power of a video library
The power of a video libraryThe power of a video library
The power of a video library
 
Architecture Behind WordPress.com
Architecture Behind WordPress.comArchitecture Behind WordPress.com
Architecture Behind WordPress.com
 
Boston Ruby Meetup: The promise and peril of Agile and Lean practices
Boston Ruby Meetup: The promise and peril of Agile and Lean practicesBoston Ruby Meetup: The promise and peril of Agile and Lean practices
Boston Ruby Meetup: The promise and peril of Agile and Lean practices
 

Similar to WordCamp Nashville 2016

Public Speaking and Procrastination
Public Speaking and ProcrastinationPublic Speaking and Procrastination
Public Speaking and ProcrastinationBenjamin Bischoff
 
Word camp c bus 2016
Word camp c bus 2016Word camp c bus 2016
Word camp c bus 2016Bobby Bryant
 
7 Tips for Designing Top Tech Training Tutorials
7 Tips for Designing Top Tech Training Tutorials7 Tips for Designing Top Tech Training Tutorials
7 Tips for Designing Top Tech Training TutorialsCrystal Schimpf
 
Day projectcon real-world-scrum
Day projectcon real-world-scrumDay projectcon real-world-scrum
Day projectcon real-world-scrumProjectCon
 
But there is no web component for that - Web Components Remote Conference - 2...
But there is no web component for that - Web Components Remote Conference - 2...But there is no web component for that - Web Components Remote Conference - 2...
But there is no web component for that - Web Components Remote Conference - 2...Horacio Gonzalez
 
Using ICT in VCE Accounting: a Showcase
Using ICT in VCE Accounting: a ShowcaseUsing ICT in VCE Accounting: a Showcase
Using ICT in VCE Accounting: a Showcasemurcha
 
Social Media, Digital Ministry and the Church - Scioto Valley Presbytery
Social Media, Digital Ministry and the Church - Scioto Valley PresbyterySocial Media, Digital Ministry and the Church - Scioto Valley Presbytery
Social Media, Digital Ministry and the Church - Scioto Valley PresbyteryBruce Reyes-Chow
 
The Digital Teacher
The Digital TeacherThe Digital Teacher
The Digital TeacherKyle Pace
 
Words and the design process - Pixel Up! meetup
Words and the design process - Pixel Up! meetupWords and the design process - Pixel Up! meetup
Words and the design process - Pixel Up! meetupBiz Sanford
 
Web Design Teaching - Sharing Effective Tools and Techniques
Web Design Teaching - Sharing Effective Tools and TechniquesWeb Design Teaching - Sharing Effective Tools and Techniques
Web Design Teaching - Sharing Effective Tools and TechniquesShelley Bartlette
 
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...Jeremy Blackburn
 
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Lisa Sjogren
 

Similar to WordCamp Nashville 2016 (13)

Public Speaking and Procrastination
Public Speaking and ProcrastinationPublic Speaking and Procrastination
Public Speaking and Procrastination
 
Word camp c bus 2016
Word camp c bus 2016Word camp c bus 2016
Word camp c bus 2016
 
7 Tips for Designing Top Tech Training Tutorials
7 Tips for Designing Top Tech Training Tutorials7 Tips for Designing Top Tech Training Tutorials
7 Tips for Designing Top Tech Training Tutorials
 
Day projectcon real-world-scrum
Day projectcon real-world-scrumDay projectcon real-world-scrum
Day projectcon real-world-scrum
 
But there is no web component for that - Web Components Remote Conference - 2...
But there is no web component for that - Web Components Remote Conference - 2...But there is no web component for that - Web Components Remote Conference - 2...
But there is no web component for that - Web Components Remote Conference - 2...
 
Using ICT in VCE Accounting: a Showcase
Using ICT in VCE Accounting: a ShowcaseUsing ICT in VCE Accounting: a Showcase
Using ICT in VCE Accounting: a Showcase
 
Social Media, Digital Ministry and the Church - Scioto Valley Presbytery
Social Media, Digital Ministry and the Church - Scioto Valley PresbyterySocial Media, Digital Ministry and the Church - Scioto Valley Presbytery
Social Media, Digital Ministry and the Church - Scioto Valley Presbytery
 
The Digital Teacher
The Digital TeacherThe Digital Teacher
The Digital Teacher
 
Words and the design process - Pixel Up! meetup
Words and the design process - Pixel Up! meetupWords and the design process - Pixel Up! meetup
Words and the design process - Pixel Up! meetup
 
Web Design Teaching - Sharing Effective Tools and Techniques
Web Design Teaching - Sharing Effective Tools and TechniquesWeb Design Teaching - Sharing Effective Tools and Techniques
Web Design Teaching - Sharing Effective Tools and Techniques
 
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...
Kek, Cucks, and God Emperor Trump: A Measurement Study of 4chan's Politically...
 
All about Cluecumber
All about CluecumberAll about Cluecumber
All about Cluecumber
 
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
Unless It Was a Digital Dog, No One Ate Your Homework (Diigo)
 

Recently uploaded

IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119APNIC
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxNIMMANAGANTI RAMAKRISHNA
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxMario
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxmibuzondetrabajo
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxAndrieCagasanAkio
 
Cybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesCybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesLumiverse Solutions Pvt Ltd
 

Recently uploaded (9)

IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
 
Cybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best PracticesCybersecurity Threats and Cybersecurity Best Practices
Cybersecurity Threats and Cybersecurity Best Practices
 

WordCamp Nashville 2016

  • 1. bobby | @mrbobbybryant #wcnash Javascript Prototypal Inheritance. How its different, and why you need to know it Bobby Bryant
  • 2. Bobby Bryant | @mrbobbybryant #wcnash About Me • Web Engineer at 10up • Father of 3 • JavaScript Junkie
  • 3. Bobby Bryant | @mrbobbybryant #wcnash Why Cover such a weird topic?
  • 4. Bobby Bryant | @mrbobbybryant #wcnash –Kyle Simpson @getify “Where it takes a pretty in-depth knowledge of a language like C or C++ to write a full-scale program, full-scale production JavaScript can, and often does, barely scratch the surface of what the language can do.” https://github.com/getify/You-Dont-Know-JS
  • 5. Bobby Bryant | @mrbobbybryant #wcnash Classical vs Prototypal Inheritance
  • 6. Bobby Bryant | @mrbobbybryant #wcnash Classical Inheritance • Allows you to create new objects using a class as a blueprint. • A blueprint as a few characteristics that make it distinct. • It implies that if you follow the instruction you will successfully create your object. • Class Based languages are built around the concept of: • Building base classes. • Extending the base classes to build a hierarchy of inheritance.
  • 7. Bobby Bryant | @mrbobbybryant #wcnash Classical Inheritance • Class Based languages are built around the concept of: • Building Base Classes. • Extending the base classes to build a hierarchy of inheritance.
  • 8. Bobby Bryant | @mrbobbybryant #wcnash Prototypal Inheritance • A prototype is one step farther than a blueprint. • It implies that you have a working version of something. • It not a contract that says if you follow these steps you will have a working object. • It implies that, “here is a working object, use it as is or make copies if you want.”
  • 9. Bobby Bryant | @mrbobbybryant #wcnash How Does JavaScript use these prototypes?
  • 10. Bobby Bryant | @mrbobbybryant #wcnash
  • 11. Bobby Bryant | @mrbobbybryant #wcnash Lots of them
  • 12. Bobby Bryant | @mrbobbybryant #wcnash Understanding the Prototype
  • 13. Bobby Bryant | @mrbobbybryant #wcnash Prototypal Inheritance
  • 14. Bobby Bryant | @mrbobbybryant #wcnash Prototypal Inheritance
  • 15. Bobby Bryant | @mrbobbybryant #wcnash Static Methods
  • 16. Bobby Bryant | @mrbobbybryant #wcnash Real World Example
  • 17. Bobby Bryant | @mrbobbybryant #wcnash Constructor
  • 18. Bobby Bryant | @mrbobbybryant #wcnash Extending a Prototype
  • 19. Bobby Bryant | @mrbobbybryant #wcnash Object Literal
  • 20. Bobby Bryant | @mrbobbybryant #wcnash Delegation
  • 21. Bobby Bryant | @mrbobbybryant #wcnash Delegation
  • 22. Bobby Bryant | @mrbobbybryant #wcnash Object Creation Patterns
  • 23. Bobby Bryant | @mrbobbybryant #wcnash Object.create
  • 24. Bobby Bryant | @mrbobbybryant #wcnash Factory Function
  • 25. Bobby Bryant | @mrbobbybryant #wcnash Factory Fn #2
  • 26. Bobby Bryant | @mrbobbybryant #wcnash Composition vs Inheritance
  • 27. Bobby Bryant | @mrbobbybryant #wcnash Currently in the larger JS world, there is actually a completely different paradigm growing. Functional Programming. And at its core functional programming is about Composition over Inheritance.
  • 28. Bobby Bryant | @mrbobbybryant #wcnash Object.assign
  • 29. Bobby Bryant | @mrbobbybryant #wcnash Object.assign
  • 30. Bobby Bryant | @mrbobbybryant #wcnash Composition
  • 31. Bobby Bryant | @mrbobbybryant #wcnash ES6 Classes
  • 32. Bobby Bryant | @mrbobbybryant #wcnash Is class syntax in ECMAScript 6 just a syntactic sugar for classical prototypes? https://www.quora.com/Is-class-syntax-in-ECMAScript-6-just-a- syntactic-sugar-for-classical-prototypes
  • 33. Bobby Bryant | @mrbobbybryant #wcnash Delegation again
  • 34. bobby | @mrbobbybryant #wcnash Thank You! I have a Javascript Problem.