Learn about JavaScript Prototype with inheritance in tamil language. Learn what is prototype and how to create prototypes of Object prototype, array prototype, Date prototype, constructor functions, class functions etc. With the help of practical examples learn everything from scratch regarding javascript prototypes
This video covers:
1. The basics of factory functions
2. How to create and use factory functions
3. The advantages of using factory functions
4. Examples with private properties using closures
5. Providing default parameters in factory functions
⭐ What is Javascript Prototype (Object Prototype, Array prototype)?
In JavaScript, a prototype is an object from which other objects inherit properties and methods. Every JavaScript object has a prototype, which acts as a template object that provides inherited properties and methods.
When you create a new object, it automatically links to a prototype object. This link is known as the prototype chain. If you try to access a property or method on an object and it doesn't exist on the object itself, JavaScript will look up the prototype chain to find it.
⭐ Breakdown of how Prototype works?
1. Prototype Object: Each function in JavaScript has a prototype property that points to an object. When you create a new object using a constructor function, this prototype property becomes the prototype of the new object.
2. Prototypal Inheritance: Objects in JavaScript can inherit properties and methods from their prototype. This is known as prototypal inheritance. It's a way to share functionality between objects.
3. The _proto_ Property: Every object has an internal property called [[Prototype]] which is often accessed using _proto_ in modern JavaScript. This points to the prototype object that the current object inherits from.
4. Constructor Functions and Prototypes: When you use a constructor function to create an object, the newly created object’s prototype is set to the constructor function's prototype property.
⭐Additional tip:
Prototypes are a powerful feature in JavaScript, allowing for efficient inheritance and code reuse.
🔴 Subscribe for more tips just like this: https://bit.ly/cyberdudeYT
- - - - - - - - - - - - - - - - - - - - - - - - -
⏱ Time Stamps
- - - - - - - - - - - - - - - - - - - - - - - - -
00:00 - Intro
08:09 - Adding our own Prototype
15:34 - Array Prototype
16:04 - Task 1 - Listing all Array prototype
18:56 - Task 2 - Listing all Object Prototype
19:26 - Using Prototype in Javacript constructor functiojns
22:20 - Date Prototype
24:10 - What to learn next?
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
⭐️ Download link ⭐️
- - - - - - - - - - - - - - - - - - - - -
👉 Download PPT, images & code: https://github.com/anburocky3/modern-...
- - - - - - - - - - - - - - - - - - - - -
⭐️ To be an expert, learn these: ⭐️
- - - - - - - - - - - - - - - - - - - - -
✅ HTML5 Course in Tamil:
https://bit.ly/htmlForBeginnersTamil
✅ CSS3 Course in Tamil:
https://bit.ly/cyberdudeCSS
✅ Flexbox Course in Tamil:
https://bit.ly/cyberdudeCSSFlexbox
✅ SASS Course in Tamil:
https://bit.ly/cyberdudeSASS
✅ JavaScript Course Tamil:
https://bit.ly/cyberdudeJS
✅ Web Design Course Tamil:
https://bit.ly/cyberdudeWebDesign
✅ JavaScript DOM in Tamil:
https://bit.ly/JS-DOM-Tamil
- - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
⭐️ Follow us to get our free training course: ⭐️
- - - - - - - - - - - - - - - - - - - - -
👉 WhatsApp: https://bit.ly/cdn-whatsapp
👉 Facebook Page: https://bit.ly/cyberdudeFBPage
📝 LinkedIn: https://bit.ly/cyberdudeLin
📸 Instagram: https://bit.ly/cyberdudeIG
💬 Telegram Channel: https://bit.ly/cyberdudeTG
👉 Discord: https://bit.ly/cyberdudeDiscord
Credits:
Sponsor: CyberDude Networks [https://bit.ly/cyberdudeWP]
Instructor: Anbuselvan Annamalai [https://bit.ly/AnbuselvanRockyFB]
Music from:
https://uppbeat.io/t/swoop/blue-sea
License code: T6KOCOBJAKWJX9N8
#prototype #javascript #javascriptintamil