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
Auf dieser Seite können Sie das Online-Video Prototype - the foundation of JavaScript - JavaScript Bangla ( বাংলা ) Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Learn with Sumit - LWS - Bangladesh 05 September 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 59,018 Mal angesehen und es wurde von 2.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!