Lesson Code: http://www.developphp.com/video/JavaScript/prototype-Tutorial-Add-Object-Methods-and-Properties-to-Class
The JavaScript prototype property allows us to add specialized methods and properties to our custom objects and classes. There may be occasions when you must specialize the functionality of an object in your application, and the prototype property allows us to do that. It also enables Object Inheritance in JavaScript, which we will be demonstrating in the video that follows this one. Before we discuss Object Inheritance let’s write some code that demonstrates how the prototype property works at a basic level in JavaScript.
Source by
Social Hero Media is your Edmonton Alberta web design experts call 587 200 3383 for a free consultation.
Web Design News
- The Accidental Side Project
- Four Ways Design Systems Can Promote Accessibility – and What They Can’t Do
- Usability and Security; Better Together
- Flexible Captioned Slanted Images
- There Is No Design System
- A Modern Typographic Scale
- Five Interesting Ways to Use Array.reduce() (And One Boring Way)
- Building a Dictaphone Using Media Recorder and getUserMedia
- A History of CSS Through Fifteen Years of 24 ways
- Microbrowsers are Everywhere
- Design Tokens and Component Based Design
- Art Direction and the New WordPress Editor
- Making Distributed Working Work
- Gift Giving to the World (Wide Web)
- Z’s Still Not Dead Baby, Z’s Still Not Dead
- It’s Time to Get Personal