To many new developers the JavaScript world may seem pretty strange, especially to those from a traditional object-oriented background. Just googling around for some JavaScript code and explanations might reveal pretty messy code and confusing terminology. To make things easier, this video is going to give you an overview of JavaScript Prototype in a very simple way, so you can have a good foundation for programming with JavaScript.
JavaScript is a prototype-based language, therefore understanding the Prototype object is one of the most important concepts which JavaScript programmers need to know. If we define Prototype, we can say that it's just a built-in object inside every JavaScript function which points to another object. Any property or method inside a prototype object can be accessed by all new objects created from that function. Simple! But this is a theoretical definition. To know in detail, please watch the video from start to end. I can bet, you will never forget Prototype in your life. Happy coding!
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
2:22 - Object Introduction
6:20 - Return Object from function
8:56 - Object count optimization
11:55 - Object.create() Introduction
17:00 - Prototype Introduction
29:45 - Constructor function
32:13 - 'new' & 'this' keyword Introduction
41:27 - class conversion
44:00 - Example with Array().prototype
Reference -
1. w3schools - https://www.w3schools.com/js/js_objec...
2. Mozilla Documentation on Object Prototypes - https://developer.mozilla.org/en-US/d...
3. Mozilla Documentation on Inheritance & Prototype Chain - https://developer.mozilla.org/en-US/d...
#prototype #javascript #bangla_programming_tutorial
In questa pagina del sito puoi guardare il video online Prototype - the foundation of JavaScript - JavaScript Bangla ( বাংলা ) Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Learn with Sumit - LWS - Bangladesh 05 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 59,018 volte e gli è piaciuto 2.2 mille spettatori. Buona visione!